Update github.com/Azure/azure-sdk-for-go #2118

This pulls in https://github.com/Azure/azure-sdk-for-go/issues/2119
which fixes the SAS URL support.
This commit is contained in:
Nick Craig-Wood 2018-07-04 09:23:53 +01:00
parent 72392a2d72
commit 03c5b8232e
594 changed files with 269883 additions and 5970 deletions

8
Gopkg.lock generated
View file

@ -23,8 +23,8 @@
"storage", "storage",
"version" "version"
] ]
revision = "cd93ccfe0395e70031704ca68f14606588eec120" revision = "fbe7db0e3f9793ba3e5704efbab84f51436c136e"
version = "v17.3.0" version = "v18.0.0"
[[projects]] [[projects]]
name = "github.com/Azure/go-autorest" name = "github.com/Azure/go-autorest"
@ -34,8 +34,8 @@
"autorest/azure", "autorest/azure",
"autorest/date" "autorest/date"
] ]
revision = "f04d503958a4fe854c1b41667c73f8813c9dd9c3" revision = "1f7cd6cfe0adea687ad44a512dfe76140f804318"
version = "v10.11.2" version = "v10.12.0"
[[projects]] [[projects]]
branch = "master" branch = "master"

View file

@ -12,6 +12,9 @@ env:
- DEP_VERSION="0.4.1" - DEP_VERSION="0.4.1"
- DEP_SHA=31144e465e52ffbc0035248a10ddea61a09bf28b00784fd3fdd9882c8cbb2315 - DEP_SHA=31144e465e52ffbc0035248a10ddea61a09bf28b00784fd3fdd9882c8cbb2315
- IGNORE_BREAKING_CHANGES=true - IGNORE_BREAKING_CHANGES=true
matrix:
- GOARCH="amd64"
- GOARCH="386"
matrix: matrix:
allow_failures: allow_failures:

View file

@ -1,43 +1,120 @@
# CHANGELOG # CHANGELOG
## `v18.0.0`
### New Services
| Package Name | API Version |
| ----------------------: | :-------------------: |
| apimanagement | 2018-06-01-preview |
| hdinsight | 2018-06-01-preview |
| computervision | v2.0 |
| recoveryservices/backup | 2016-12-01 |
| storagedatalake | 2018-06-17 |
| devspaces | 2018-06-01-preview |
| automation | 2017-05-15-preview |
| keyvault | v7.0 <br/> 2018-02-14 |
| automation | 2018-01-preview |
| media | 2018-06-01-preview |
| datafactory | 2018-06-01 |
### Updates Services
| Package Name | API Version |
| -------------: | :--------------------------------: |
| face | v1.0 |
| luis/authoring | v2.0 |
| luis/runtime | v2.0 |
| textanalytics | v2.0 |
| eventhub | 2017-04-01 <br/>2018-01-01-preview |
| monitor | 2017-05-01-preview |
| signalr | 2018-03-01-preview |
| sql | 2017-10-01-preview |
| storage | 2018-03-01-preview <br/>2018-02-01 |
| servicebus | 2017-04-01 |
### Breaking Changes
| Package Name | API Version |
| ----------------------: | :-------------------: |
| adhybridhealthservice | 2014-01-01 |
| advisor | 2017-04-19 |
| appinsights | 2015-05-01 <br/> v1 |
| automation | 2015-10-31/automation |
| batchai | 2018-05-01/batchai |
| computervision | v1.0 |
| consumption | 2018-05-31 |
| network | 2018-04-01 |
| operationalinsights | 2015-03-20<br/>v1 |
| recoveryservices/backup | 2017-07-01 |
| reservations | 2018-06-01 |
## `v17.4.0`
### New Services
| Package Name | API Version |
| ---------------: | :---------: |
| autosuggest | v1.0 |
| containerservice | 2018-03-31 |
### Updated Services
| Package Name | API Version |
| ---------------: | :---------------------------------------: |
| consumption | 2018-05-31 |
| documentdb | 2015-04-08 |
| network | 2018-02-01<br/>2018-04-01<br/>2018-05-01 |
| notificationhubs | 2017-04-01 |
| sql | 2017-03-01-preview<br/>2017-10-01-preview |
## `v17.3.1`
### Updated Services
| Package Name | API Version |
| ------------: | :-----------------------------------------------------------------------------------: |
| network | 2017-10-01<br/>2017-11-01<br/>2018-01-01<br/>2018-02-01<br/>2018-04-01<br/>2018-05-01 |
| servicefabric | 5.6<br/>6.0<br/>6.1<br/>6.2 |
## `v17.3.0` ## `v17.3.0`
### New Services ### New Services
| Package Name | API Version | | Package Name | API Version |
| --------------------: | :-----------------: | | ----------------: | :---------: |
| containerinstance | 2018-06-01 | | containerinstance | 2018-06-01 |
| reservations | 2018-06-01 | | reservations | 2018-06-01 |
### Updated Services ### Updated Services
| Package Name | API Version | | Package Name | API Version |
| --------------------: | :-----------------: | | -----------: | :---------: |
| datafactory | 2017-09-01 | | datafactory | 2017-09-01 |
| network | 2015-06-15 | | network | 2015-06-15 |
## `v17.2.0` ## `v17.2.0`
### New Services ### New Services
| Package Name | API Version | | Package Name | API Version |
| --------------------: | :-----------------: | | ------------------: | :---------: |
| managedapplications | 2018-06-01 | | managedapplications | 2018-06-01 |
| resources | 2018-05-01 | | resources | 2018-05-01 |
### Updated Services ### Updated Services
| Package Name | API Version | | Package Name | API Version |
| --------------------: | :-----------------: | | -------------------: | :---------: |
| networksecuritygroup | classic | | networksecuritygroup | classic |
## `v17.1.0` ## `v17.1.0`
### New Services ### New Services
| Package Name | API Version | | Package Name | API Version |
| --------------------: | :-----------------: | | -----------: | :-----------------------: |
| iotcentral | 2017-07-01-privatepreview | | iotcentral | 2017-07-01-privatepreview |
## `v17.0.0` ## `v17.0.0`
@ -248,7 +325,7 @@
## `v16.1.0` ## `v16.1.0`
* Added a `NewAuthorizerFromEnvironment()` function for the keyvault service. - Added a `NewAuthorizerFromEnvironment()` function for the keyvault service.
## `v16.0.0` ## `v16.0.0`
@ -339,8 +416,8 @@
### Bug Fixes ### Bug Fixes
* Drain the response body when retrying a request. - Drain the response body when retrying a request.
* Avoid allocating when draining a response body. - Avoid allocating when draining a response body.
## `v15.1.0` ## `v15.1.0`
@ -374,14 +451,14 @@ NOTE: There is a new subdirectory, ./services/preview, which going forward will
### New Features ### New Features
* Added helper func per enum type that returns a slice of all possible values for that type. - Added helper func per enum type that returns a slice of all possible values for that type.
### Bug Fixes ### Bug Fixes
* Removed the "arm-" prefix from user-agent strings as not all services are for ARM. - Removed the "arm-" prefix from user-agent strings as not all services are for ARM.
* Fixed missing marshaller for structs with flattened fields. - Fixed missing marshaller for structs with flattened fields.
* Fixed an issue where the incorrect content MIME type was being specified. - Fixed an issue where the incorrect content MIME type was being specified.
* Marshalling of empty values for enum types now works as expected. - Marshalling of empty values for enum types now works as expected.
### New Services ### New Services
@ -441,80 +518,80 @@ NOTE: There is a new subdirectory, ./services/preview, which going forward will
### New Services ### New Services
* Batch 2018-03-01.6.1 - Batch 2018-03-01.6.1
* BatchAI 2018-03-01 - BatchAI 2018-03-01
* Cognitive services custom vision prediction v1.1 - Cognitive services custom vision prediction v1.1
* Eventhub 2018-01-01-preview - Eventhub 2018-01-01-preview
* MySQL 2017-12-01 - MySQL 2017-12-01
* PostgreSQL 2017-12-01 - PostgreSQL 2017-12-01
* Redis 2018-03-01 - Redis 2018-03-01
* Subscription 2018-03-01-preview - Subscription 2018-03-01-preview
## `v14.5.0` ## `v14.5.0`
### Changes ### Changes
* Added new preview packages for apimanagement and dns. - Added new preview packages for apimanagement and dns.
## `v14.4.0` ## `v14.4.0`
### Changes ### Changes
* Added new preview API versions for mysql and postgresql. - Added new preview API versions for mysql and postgresql.
## `v14.3.0` ## `v14.3.0`
### Changes ### Changes
* Add exports for max file range and sizes for files in storage. - Add exports for max file range and sizes for files in storage.
* Updated README regarding blob storage support. - Updated README regarding blob storage support.
* Add godoc indexer tool. - Add godoc indexer tool.
* Add apidiff tool. - Add apidiff tool.
## `v14.2.0` ## `v14.2.0`
### Changes ### Changes
* For blob storage, added GetProperties() method to Container. - For blob storage, added GetProperties() method to Container.
* Added PublicAccess field to ContainerProperties struct. - Added PublicAccess field to ContainerProperties struct.
## `v14.1.1` ## `v14.1.1`
* Fixing timestamp marshalling bug in the `storage` package. - Fixing timestamp marshalling bug in the `storage` package.
* Updating `profileBuilder` to clear-output folders when it is run by `go generate`. - Updating `profileBuilder` to clear-output folders when it is run by `go generate`.
* Tweaking Swagger -> SDK config to use "latest" instead of "nightly" and be tied to a particular version of autorest.go. - Tweaking Swagger -> SDK config to use "latest" instead of "nightly" and be tied to a particular version of autorest.go.
## `v14.1.0` ## `v14.1.0`
### Changes ### Changes
* Update README with details on new authentication helpers. - Update README with details on new authentication helpers.
* Update `latest` profile to point to latest stable API versions. - Update `latest` profile to point to latest stable API versions.
* Add new API version for Azure Monitoring service and for Batch Data plane service. - Add new API version for Azure Monitoring service and for Batch Data plane service.
## `v14.0.2` ## `v14.0.2`
### Changes ### Changes
* Updating `profileBuilder list` to accept an `input` flag instead of reading from `stdin`. - Updating `profileBuilder list` to accept an `input` flag instead of reading from `stdin`.
* Simplifying CI to have less chatter, be faster, and have no special cases. - Simplifying CI to have less chatter, be faster, and have no special cases.
## `v14.0.1` ## `v14.0.1`
### Changes ### Changes
* Removed the ./services/search/2016-09-01/search package, it was never intended to be included and doesn't work. - Removed the ./services/search/2016-09-01/search package, it was never intended to be included and doesn't work.
## `v14.0.0` ## `v14.0.0`
### Breaking Changes ### Breaking Changes
* Removed the ./arm, ./datalake-store and ./dataplane directories. You can find the same packages under ./services - Removed the ./arm, ./datalake-store and ./dataplane directories. You can find the same packages under ./services
* The management package was moved to ./services/classic/management - The management package was moved to ./services/classic/management
* Renamed package ./services/redis/mgmt/2017-10-01/cache to ./services/redis/mgmt/2017-10-01/redis - Renamed package ./services/redis/mgmt/2017-10-01/cache to ./services/redis/mgmt/2017-10-01/redis
### Changes ### Changes
* Removed the "-beta" suffix. - Removed the "-beta" suffix.
* Added various new services. - Added various new services.
* Added ./version package for centralized SDK versioning. - Added ./version package for centralized SDK versioning.

View file

@ -12,8 +12,8 @@
"autorest/to", "autorest/to",
"autorest/validation" "autorest/validation"
] ]
revision = "4de44cd533576f3c7b44dcb08dc03754d217144d" revision = "1f7cd6cfe0adea687ad44a512dfe76140f804318"
version = "v10.9.2" version = "v10.12.0"
[[projects]] [[projects]]
name = "github.com/dgrijalva/jwt-go" name = "github.com/dgrijalva/jwt-go"
@ -34,7 +34,7 @@
"cassette", "cassette",
"recorder" "recorder"
] ]
revision = "f8a7e8b9c630b486df74145bb887793a1b85459b" revision = "8b144be0744f013a1b44386058f1fcb3ba98177d"
[[projects]] [[projects]]
name = "github.com/fsnotify/fsnotify" name = "github.com/fsnotify/fsnotify"
@ -52,7 +52,7 @@
"internal/sasl", "internal/sasl",
"internal/scram" "internal/scram"
] ]
revision = "efe0945164a7e582241f37ae8983c075f8f2e870" revision = "113d3961e7311526535a1ef7042196563d442761"
[[projects]] [[projects]]
branch = "master" branch = "master"
@ -77,6 +77,18 @@
revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75" revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
version = "v1.0" version = "v1.0"
[[projects]]
name = "github.com/kr/pretty"
packages = ["."]
revision = "73f6ac0b30a98e433b289500d779f50c1a6f0712"
version = "v0.1.0"
[[projects]]
name = "github.com/kr/text"
packages = ["."]
revision = "e2ffdb16a802fe2bb95e2e35ff34f0e53aeef34f"
version = "v0.1.0"
[[projects]] [[projects]]
name = "github.com/magiconair/properties" name = "github.com/magiconair/properties"
packages = ["."] packages = ["."]
@ -105,7 +117,7 @@
branch = "master" branch = "master"
name = "github.com/marstr/randname" name = "github.com/marstr/randname"
packages = ["."] packages = ["."]
revision = "3ef1f47af99e66171417047e6f6fa334345e95e7" revision = "48a63b6052f1f9373db9388a658da30c6ab53db1"
[[projects]] [[projects]]
branch = "master" branch = "master"
@ -122,8 +134,8 @@
[[projects]] [[projects]]
name = "github.com/pelletier/go-toml" name = "github.com/pelletier/go-toml"
packages = ["."] packages = ["."]
revision = "acdc4509485b587f5e675510c4f2c63e90ff68a8" revision = "c01d1270ff3e442a8a57cddc1c92dc1138598194"
version = "v1.1.0" version = "v1.2.0"
[[projects]] [[projects]]
name = "github.com/satori/go.uuid" name = "github.com/satori/go.uuid"
@ -143,8 +155,8 @@
".", ".",
"mem" "mem"
] ]
revision = "63644898a8da0bc22138abf860edaf5277b6102e" revision = "787d034dfe70e44075ccc060d346146ef53270ad"
version = "v1.1.0" version = "v1.1.1"
[[projects]] [[projects]]
name = "github.com/spf13/cast" name = "github.com/spf13/cast"
@ -183,13 +195,13 @@
"pkcs12", "pkcs12",
"pkcs12/internal/rc2" "pkcs12/internal/rc2"
] ]
revision = "5ba7f63082460102a45837dbd1827e10f9479ac0" revision = "a49355c7e3f8fe157a85be2f77e6e269a0f89602"
[[projects]] [[projects]]
branch = "master" branch = "master"
name = "golang.org/x/sys" name = "golang.org/x/sys"
packages = ["unix"] packages = ["unix"]
revision = "c11f84a56e43e20a78cee75a7c034031ecf57d1f" revision = "7138fd3d9dc8335c567ca206f4333fb75eb05d56"
[[projects]] [[projects]]
name = "golang.org/x/text" name = "golang.org/x/text"
@ -212,13 +224,13 @@
"imports", "imports",
"internal/fastwalk" "internal/fastwalk"
] ]
revision = "a5b4c53f6e8bdcafa95a94671bf2d1203365858b" revision = "ffe88906718454e356e61776b54256e873fc133b"
[[projects]] [[projects]]
branch = "v1" branch = "v1"
name = "gopkg.in/check.v1" name = "gopkg.in/check.v1"
packages = ["."] packages = ["."]
revision = "20d25e2804050c1cd24a7eea1e7a6447dd0e74ec" revision = "788fd78401277ebd861206a03c884797c6ec5541"
[[projects]] [[projects]]
name = "gopkg.in/yaml.v2" name = "gopkg.in/yaml.v2"
@ -229,6 +241,6 @@
[solve-meta] [solve-meta]
analyzer-name = "dep" analyzer-name = "dep"
analyzer-version = 1 analyzer-version = 1
inputs-digest = "3ba7e7e6599059a0ac88f854eca95495c02501ebe2e0be13b38e4f2b823d5c53" inputs-digest = "f4bfed9d1dcc4af2e0ff5811bb14dfebe84f87e7aed10199b8ff8d867d947612"
solver-name = "gps-cdcl" solver-name = "gps-cdcl"
solver-version = 1 solver-version = 1

View file

@ -22,7 +22,7 @@
[[constraint]] [[constraint]]
name = "github.com/Azure/go-autorest" name = "github.com/Azure/go-autorest"
version = "10.9.2" version = "10.12.0"
[[constraint]] [[constraint]]
branch = "master" branch = "master"

View file

@ -4,37 +4,52 @@
[![Build Status](https://travis-ci.org/Azure/azure-sdk-for-go.svg?branch=master)](https://travis-ci.org/Azure/azure-sdk-for-go) [![Build Status](https://travis-ci.org/Azure/azure-sdk-for-go.svg?branch=master)](https://travis-ci.org/Azure/azure-sdk-for-go)
[![Go Report Card](https://goreportcard.com/badge/github.com/Azure/azure-sdk-for-go)](https://goreportcard.com/report/github.com/Azure/azure-sdk-for-go) [![Go Report Card](https://goreportcard.com/badge/github.com/Azure/azure-sdk-for-go)](https://goreportcard.com/report/github.com/Azure/azure-sdk-for-go)
azure-sdk-for-go provides Go packages for managing and using Azure services. It has been azure-sdk-for-go provides Go packages for managing and using Azure services.
tested with Go 1.8, 1.9 and 1.10. It is continuously tested with Go 1.8, 1.9, 1.10 and master.
To be notified about updates and changes, subscribe to the [Azure update To be notified about updates and changes, subscribe to the [Azure update
feed](https://azure.microsoft.com/updates/). feed](https://azure.microsoft.com/updates/).
Users of the SDK may prefer to jump right in to our samples repo at Users may prefer to jump right in to our samples repo at
[github.com/Azure-Samples/azure-sdk-for-go-samples][samples_repo]. [github.com/Azure-Samples/azure-sdk-for-go-samples][samples_repo].
### Build Details ## Package Updates
Most packages in the SDK are generated from [Azure API specs][azure_rest_specs] Most packages in the SDK are generated from [Azure API specs][azure_rest_specs]
using [Azure/autorest.go][] and [Azure/autorest][]. These generated packages using [Azure/autorest.go][] and [Azure/autorest][]. These generated packages
depend on the HTTP client implemented at [Azure/go-autorest][]. depend on the HTTP client implemented at [Azure/go-autorest][].
[azure_rest_specs]: https://github.com/Azure/azure-rest-api-specs [azure_rest_specs]: https://github.com/Azure/azure-rest-api-specs
[Azure/autorest]: https://github.com/Azure/autorest [azure/autorest]: https://github.com/Azure/autorest
[Azure/autorest.go]: https://github.com/Azure/autorest.go [azure/autorest.go]: https://github.com/Azure/autorest.go
[Azure/go-autorest]: https://github.com/Azure/go-autorest [azure/go-autorest]: https://github.com/Azure/go-autorest
The SDK codebase adheres to [semantic versioning](https://semver.org) and thus The SDK codebase adheres to [semantic versioning](https://semver.org) and thus
avoids breaking changes other than at major (x.0.0) releases. However, avoids breaking changes other than at major (x.0.0) releases. Because Azure's
occasionally Azure API fixes require breaking updates within an individual APIs are updated frequently, we release a **new major version at the end of
package; these exceptions are noted in release changelogs. each month** with a full changelog. For more details and background see [SDK Update
Practices](https://github.com/Azure/azure-sdk-for-go/wiki/SDK-Update-Practices).
To more reliably manage dependencies like the Azure SDK in your applications we To more reliably manage dependencies like the Azure SDK in your applications we
recommend [golang/dep](https://github.com/golang/dep). recommend [golang/dep](https://github.com/golang/dep).
## Other Azure Go Packages
Azure provides several other packages for using services from Go, listed below.
If a package you need isn't available please open an issue and let us know.
| Service | Import Path/Repo |
| -------------------- | -------------------------------------------------------------------------------------------------- |
| Storage - Blobs | [github.com/Azure/azure-storage-blob-go](https://github.com/Azure/azure-storage-blob-go) |
| Storage - Files | [github.com/Azure/azure-storage-file-go](https://github.com/Azure/azure-storage-file-go) |
| Storage - Queues | [github.com/Azure/azure-storage-queue-go](https://github.com/Azure/azure-storage-queue-go) |
| Service Bus | [github.com/Azure/azure-service-bus-go](https://github.com/Azure/azure-service-bus-go) |
| Event Hubs | [github.com/Azure/azure-event-hubs-go](https://github.com/Azure/azure-event-hubs-go) |
| Application Insights | [github.com/Microsoft/ApplicationInsights-go](https://github.com/Microsoft/ApplicationInsights-go) |
# Install and Use: # Install and Use:
### Install ## Install
```sh ```sh
$ go get -u github.com/Azure/azure-sdk-for-go/... $ go get -u github.com/Azure/azure-sdk-for-go/...
@ -48,42 +63,49 @@ $ dep ensure -add github.com/Azure/azure-sdk-for-go
If you need to install Go, follow [the official instructions](https://golang.org/dl/). If you need to install Go, follow [the official instructions](https://golang.org/dl/).
### Use ## Use
For complete examples of many scenarios see [Azure-Samples/azure-sdk-for-go-samples][samples_repo]. For many more scenarios and examples see
[Azure-Samples/azure-sdk-for-go-samples][samples_repo].
1. Import a package from the [services][services_dir] directory. Apply the following general steps to use packages in this repo. For more on
2. Create and authenticate a client with a `New*Client` func, e.g. authentication and the `Authorizer` interface see [the next
`c := compute.NewVirtualMachinesClient(...)`. section](#authentication).
3. Invoke API methods using the client, e.g. `c.CreateOrUpdate(...)`.
4. Handle responses. 1. Import a package from the [services][services_dir] directory.
2. Create and authenticate a client with a `New*Client` func, e.g.
`c := compute.NewVirtualMachinesClient(...)`.
3. Invoke API methods using the client, e.g.
`res, err := c.CreateOrUpdate(...)`.
4. Handle responses and errors.
[services_dir]: https://github.com/Azure/azure-sdk-for-go/tree/master/services [services_dir]: https://github.com/Azure/azure-sdk-for-go/tree/master/services
For example, to create a new virtual network (substitute your own values for For example, to create a new virtual network (substitute your own values for
strings in angle brackets): strings in angle brackets):
Note: For more on authentication and the `Authorizer` interface see [the next
section](#authentication).
```go ```go
package main package main
import ( import (
"context" "context"
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-09-01/network" "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-09-01/network"
"github.com/Azure/go-autorest/autorest/azure/auth" "github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/Azure/go-autorest/autorest/to" "github.com/Azure/go-autorest/autorest/to"
) )
func main() { func main() {
// create a VirtualNetworks client
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>") vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
authorizer, err := auth.NewAuthorizerFromEnvironment()
// create an authorizer from env vars or Azure Managed Service Idenity
authorizer, err := auth.NewAuthorizerFromEnvironment()
if err == nil { if err == nil {
vnetClient.Authorizer = authorizer vnetClient.Authorizer = authorizer
} }
// call the VirtualNetworks CreateOrUpdate API
vnetClient.CreateOrUpdate(context.Background(), vnetClient.CreateOrUpdate(context.Background(),
"<resourceGroupName>", "<resourceGroupName>",
"<vnetName>", "<vnetName>",
@ -112,52 +134,111 @@ func main() {
} }
``` ```
### Authentication ## Authentication
Most SDK operations require an OAuth token for authentication and authorization. These are Typical SDK operations must be authenticated and authorized. The _Authorizer_
made available in the Go SDK For Azure through types implementing the `Authorizer` interface. interface allows use of any auth style in requests, such as inserting an OAuth2
You can get one from Azure Active Directory using the SDK's Authorization header and bearer token received from Azure AD.
[authentication](https://godoc.org/github.com/Azure/go-autorest/autorest/azure/auth) package. The `Authorizer` returned should
be set as the authorizer for the resource client, as shown in the [previous section](#use).
You can get an authorizer in the following ways: The SDK itself provides a simple way to get an authorizer which first checks
1. From the **Environment**: for OAuth client credentials in environment variables and then falls back to
- Use `auth.auth.NewAuthorizerFromEnvironment()`. This call will try to get an authorizer based on the environment Azure's [Managed Service Identity]() when available, e.g. when on an Azure
variables with different types of credentials in the following order: VM. The following snippet from [the previous section](#use) demonstrates
1. **Client Credentials**: Uses the AAD App Secret for auth. this helper.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_CLIENT_SECRET`: Specifies the app secret to use.
2. **Client Certificate**: Uses a certificate that was configured on the AAD Service Principal.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_CERTIFICATE_PATH`: Specifies the certificate Path to use.
- `AZURE_CERTIFICATE_PASSWORD`: Specifies the certificate password to use.
3. **Username Pasword**: Uses a username and a password for auth. This is not recommended. Use `Device Flow` Auth instead for user interactive acccess.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_USERNAME`: Specifies the username to use.
- `AZURE_PASSWORD`: Specifies the password to use.
4. **MSI**: Only available for apps running in Azure. No configuration needed as it leverages the fact that the app is running in Azure. See [Azure Managed Service Identity](https://docs.microsoft.com/en-us/azure/active-directory/msi-overview).
- Optionally, the following environment variables can be defined: ```go
- `AZURE_ENVIRONMENT`: Specifies the Azure Environment to use. If not set, it defaults to `AzurePublicCloud`. (Not applicable to MSI based auth) import github.com/Azure/go-autorest/autorest/azure/auth
- `AZURE_AD_RESOURCE`: Specifies the AAD resource ID to use. If not set, it defaults to `ResourceManagerEndpoint`which allows management operations against Azure Resource Manager.
2. From an **Auth File**: // create a VirtualNetworks client
- Create a service principal and output the file content using `az ad sp create-for-rbac --sdk-auth` from the Azure CLI.For more details see [az ad sp](https://docs.microsoft.com/en-us/cli/azure/ad/sp). vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
- Set environment variable `AZURE_AUTH_LOCATION` for finding the file.
- Use `auth.NewAuthorizerFromFile()` for getting the `Authorizer` based on the auth file.
3. From **Device Flow** by configuring `auth.DeviceFlowConfig` and calling the `Authorizer()` method. // create an authorizer from env vars or Azure Managed Service Idenity
authorizer, err := auth.NewAuthorizerFromEnvironment()
if err == nil {
vnetClient.Authorizer = authorizer
}
Note: To authenticate you first need to create a service principal in Azure. To create a new service principal, run // call the VirtualNetworks CreateOrUpdate API
`az ad sp create-for-rbac -n "<app_name>"` in the vnetClient.CreateOrUpdate(context.Background(),
[azure-cli](https://github.com/Azure/azure-cli). See // ...
[these docs](https://docs.microsoft.com/cli/azure/create-an-azure-service-principal-azure-cli?view=azure-cli-latest) ```
for more info. Copy the new principal's ID, secret, and tenant ID for use in your app.
Alternatively, if your apps are running in Azure, you can now leverage the [Managed Service Identity](https://docs.microsoft.com/en-us/azure/active-directory/msi-overview). The following environment variables help determine authentication configuration:
- `AZURE_ENVIRONMENT`: Specifies the Azure Environment to use. If not set, it
defaults to `AzurePublicCloud`. Not applicable to authentication with Managed
Service Identity (MSI).
- `AZURE_AD_RESOURCE`: Specifies the AAD resource ID to use. If not set, it
defaults to `ResourceManagerEndpoint` for operations with Azure Resource
Manager. You can also choose an alternate resource programatically with
`auth.NewAuthorizerFromEnvironmentWithResource(resource string)`.
### More Authentication Details
The previous is the first and most recommended of several authentication
options offered by the SDK because it allows seamless use of both service
principals and [Azure Managed Service Identity][]. Other options are listed
below.
> Note: If you need to create a new service principal, run `az ad sp create-for-rbac -n "<app_name>"` in the
> [azure-cli](https://github.com/Azure/azure-cli). See [these
> docs](https://docs.microsoft.com/cli/azure/create-an-azure-service-principal-azure-cli?view=azure-cli-latest)
> for more info. Copy the new principal's ID, secret, and tenant ID for use in
> your app, or consider the `--sdk-auth` parameter for serialized output.
[azure managed service identity]: https://docs.microsoft.com/en-us/azure/active-directory/msi-overview
- The `auth.NewAuthorizerFromEnvironment()` described above creates an authorizer
from the first available of the following configuration:
1. **Client Credentials**: Azure AD Application ID and Secret.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_CLIENT_SECRET`: Specifies the app secret to use.
2. **Client Certificate**: Azure AD Application ID and X.509 Certificate.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_CERTIFICATE_PATH`: Specifies the certificate Path to use.
- `AZURE_CERTIFICATE_PASSWORD`: Specifies the certificate password to use.
3. **Resource Owner Password**: Azure AD User and Password. This grant type is *not
recommended*, use device login instead if you need interactive login.
- `AZURE_TENANT_ID`: Specifies the Tenant to which to authenticate.
- `AZURE_CLIENT_ID`: Specifies the app client ID to use.
- `AZURE_USERNAME`: Specifies the username to use.
- `AZURE_PASSWORD`: Specifies the password to use.
4. **Azure Managed Service Identity**: Delegate credential management to the
platform. Requires that code is running in Azure, e.g. on a VM. All
configuration is handled by Azure. See [Azure Managed Service
Identity](https://docs.microsoft.com/en-us/azure/active-directory/msi-overview)
for more details.
- The `auth.NewAuthorizerFromFile()` method creates an authorizer using
credentials from an auth file created by the [Azure CLI][]. Follow these
steps to utilize:
1. Create a service principal and output an auth file using `az ad sp create-for-rbac --sdk-auth > client_credentials.json`.
2. Set environment variable `AZURE_AUTH_LOCATION` to the path of the saved
output file.
3. Use the authorizer returned by `auth.NewAuthorizerFromFile()` in your
client as described above.
[azure cli]: https://github.com/Azure/azure-cli
- Finally, you can use OAuth's [Device Flow][] by calling
`auth.NewDeviceFlowConfig()` and extracting the Authorizer as follows:
```go
config := auth.NewDeviceFlowConfig(clientID, tenantID)
a, err = config.Authorizer()
```
[device flow]: https://oauth.net/2/device-flow/
# Versioning # Versioning
@ -186,17 +267,16 @@ Occasionally service-side changes require major changes to existing versions.
These cases are noted in the changelog. These cases are noted in the changelog.
All avilable services and versions are listed under the `services/` path in All avilable services and versions are listed under the `services/` path in
this repo and in [GoDoc][services_godoc]. Run `find ./services -type d this repo and in [GoDoc][services_godoc]. Run `find ./services -type d -mindepth 3` to list all available service packages.
-mindepth 3` to list all available service packages.
[services_godoc]: https://godoc.org/github.com/Azure/azure-sdk-for-go/services [services_godoc]: https://godoc.org/github.com/Azure/azure-sdk-for-go/services
### Profiles ### Profiles
Azure **API profiles** specify subsets of Azure APIs and versions. Profiles can provide: Azure **API profiles** specify subsets of Azure APIs and versions. Profiles can provide:
* **stability** for your application by locking to specific API versions; and/or - **stability** for your application by locking to specific API versions; and/or
* **compatibility** for your application with Azure Stack and regional Azure datacenters. - **compatibility** for your application with Azure Stack and regional Azure datacenters.
In the Go SDK, profiles are available under the `profiles/` path and their In the Go SDK, profiles are available under the `profiles/` path and their
component API versions are aliases to the true service package under component API versions are aliases to the true service package under
@ -212,9 +292,9 @@ The 2017-03-09 profile is the only one currently available and is for use in
hybrid Azure and Azure Stack environments. More profiles are under development. hybrid Azure and Azure Stack environments. More profiles are under development.
In addition to versioned profiles, we also provide two special profiles In addition to versioned profiles, we also provide two special profiles
`latest` and `preview`. These *always* include the most recent respective stable or `latest` and `preview`. These _always_ include the most recent respective stable or
preview API versions for each service, even when updating them to do so causes preview API versions for each service, even when updating them to do so causes
breaking changes. That is, these do *not* adhere to semantic versioning rules. breaking changes. That is, these do _not_ adhere to semantic versioning rules.
The `latest` and `preview` profiles can help you stay up to date with API The `latest` and `preview` profiles can help you stay up to date with API
updates as you build applications. Since they are by definition not stable, updates as you build applications. Since they are by definition not stable,
@ -240,7 +320,6 @@ All clients implement some handy hooks to help inspect the underlying requests b
Here is an example of how these can be used with `net/http/httputil` to see requests and responses. Here is an example of how these can be used with `net/http/httputil` to see requests and responses.
```go ```go
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>") vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
vnetClient.RequestInspector = LogRequest() vnetClient.RequestInspector = LogRequest()
vnetClient.ResponseInspector = LogResponse() vnetClient.ResponseInspector = LogResponse()
@ -284,11 +363,6 @@ func LogResponse() autorest.RespondDecorator {
- Azure API docs are at [docs.microsoft.com/rest/api](https://docs.microsoft.com/rest/api/). - Azure API docs are at [docs.microsoft.com/rest/api](https://docs.microsoft.com/rest/api/).
- General Azure docs are at [docs.microsoft.com/azure](https://docs.microsoft.com/azure). - General Azure docs are at [docs.microsoft.com/azure](https://docs.microsoft.com/azure).
### Other Azure packages for Go
- [Azure Storage Blobs](https://azure.microsoft.com/services/storage/blobs) - [github.com/Azure/azure-storage-blob-go](https://github.com/Azure/azure-storage-blob-go)
- [Azure Applications Insights](https://azure.microsoft.com/en-us/services/application-insights/) - [github.com/Microsoft/ApplicationInsights-Go](https://github.com/Microsoft/ApplicationInsights-Go)
## License ## License
Apache 2.0, see [LICENSE](./LICENSE). Apache 2.0, see [LICENSE](./LICENSE).
@ -297,5 +371,4 @@ Apache 2.0, see [LICENSE](./LICENSE).
See [CONTRIBUTING.md](./CONTRIBUTING.md). See [CONTRIBUTING.md](./CONTRIBUTING.md).
[samples_repo]: https://github.com/Azure-Samples/azure-sdk-for-go-samples [samples_repo]: https://github.com/Azure-Samples/azure-sdk-for-go-samples

View file

@ -64,7 +64,6 @@ type OperationEntityListResult = original.OperationEntityListResult
type OperationEntityListResultIterator = original.OperationEntityListResultIterator type OperationEntityListResultIterator = original.OperationEntityListResultIterator
type OperationEntityListResultPage = original.OperationEntityListResultPage type OperationEntityListResultPage = original.OperationEntityListResultPage
type RecommendationProperties = original.RecommendationProperties type RecommendationProperties = original.RecommendationProperties
type RecommendationsGetGenerateStatusFuture = original.RecommendationsGetGenerateStatusFuture
type Resource = original.Resource type Resource = original.Resource
type ResourceRecommendationBase = original.ResourceRecommendationBase type ResourceRecommendationBase = original.ResourceRecommendationBase
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult

View file

@ -21,7 +21,7 @@ package insights
import original "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights" import original "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights"
type AnalyticsItemClient = original.AnalyticsItemClient type AnalyticsItemsClient = original.AnalyticsItemsClient
type AnnotationsClient = original.AnnotationsClient type AnnotationsClient = original.AnnotationsClient
type APIKeysClient = original.APIKeysClient type APIKeysClient = original.APIKeysClient
@ -36,7 +36,6 @@ type ComponentFeatureCapabilitiesClient = original.ComponentFeatureCapabilitiesC
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
type ComponentsClient = original.ComponentsClient type ComponentsClient = original.ComponentsClient
type ExportConfigurationsClient = original.ExportConfigurationsClient type ExportConfigurationsClient = original.ExportConfigurationsClient
type FavoriteClient = original.FavoriteClient
type FavoritesClient = original.FavoritesClient type FavoritesClient = original.FavoritesClient
type ApplicationType = original.ApplicationType type ApplicationType = original.ApplicationType
@ -142,6 +141,7 @@ const (
type Annotation = original.Annotation type Annotation = original.Annotation
type AnnotationError = original.AnnotationError type AnnotationError = original.AnnotationError
type AnnotationsListResult = original.AnnotationsListResult
type APIKeyRequest = original.APIKeyRequest type APIKeyRequest = original.APIKeyRequest
type ApplicationInsightsComponent = original.ApplicationInsightsComponent type ApplicationInsightsComponent = original.ApplicationInsightsComponent
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
@ -170,7 +170,7 @@ type ComponentPurgeBody = original.ComponentPurgeBody
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
type ComponentPurgeResponse = original.ComponentPurgeResponse type ComponentPurgeResponse = original.ComponentPurgeResponse
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
type ComponentsPurgeFuture = original.ComponentsPurgeFuture type ComponentsResource = original.ComponentsResource
type ErrorFieldContract = original.ErrorFieldContract type ErrorFieldContract = original.ErrorFieldContract
type ErrorResponse = original.ErrorResponse type ErrorResponse = original.ErrorResponse
type InnerError = original.InnerError type InnerError = original.InnerError
@ -180,13 +180,11 @@ type ListApplicationInsightsComponentAnalyticsItem = original.ListApplicationIns
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
type ListWorkItemConfiguration = original.ListWorkItemConfiguration
type Operation = original.Operation type Operation = original.Operation
type OperationDisplay = original.OperationDisplay type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage type OperationListResultPage = original.OperationListResultPage
type Resource = original.Resource
type SetObject = original.SetObject type SetObject = original.SetObject
type TagsResource = original.TagsResource type TagsResource = original.TagsResource
type WebTest = original.WebTest type WebTest = original.WebTest
@ -196,26 +194,28 @@ type WebTestListResultIterator = original.WebTestListResultIterator
type WebTestListResultPage = original.WebTestListResultPage type WebTestListResultPage = original.WebTestListResultPage
type WebTestProperties = original.WebTestProperties type WebTestProperties = original.WebTestProperties
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
type WebtestsResource = original.WebtestsResource
type Workbook = original.Workbook type Workbook = original.Workbook
type WorkbookError = original.WorkbookError type WorkbookError = original.WorkbookError
type WorkbookProperties = original.WorkbookProperties type WorkbookProperties = original.WorkbookProperties
type Workbooks = original.Workbooks type WorkbookResource = original.WorkbookResource
type WorkbooksListResult = original.WorkbooksListResult
type WorkItemConfiguration = original.WorkItemConfiguration type WorkItemConfiguration = original.WorkItemConfiguration
type WorkItemConfigurationError = original.WorkItemConfigurationError type WorkItemConfigurationError = original.WorkItemConfigurationError
type WorkItemConfigurationsListResult = original.WorkItemConfigurationsListResult
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
type WebTestLocationsClient = original.WebTestLocationsClient type WebTestLocationsClient = original.WebTestLocationsClient
type WebTestsClient = original.WebTestsClient type WebTestsClient = original.WebTestsClient
type WorkbookClient = original.WorkbookClient
type WorkbooksClient = original.WorkbooksClient type WorkbooksClient = original.WorkbooksClient
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient { func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
return original.NewAnalyticsItemClient(subscriptionID) return original.NewAnalyticsItemsClient(subscriptionID)
} }
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient { func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
return original.NewAnalyticsItemClientWithBaseURI(baseURI, subscriptionID) return original.NewAnalyticsItemsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewAnnotationsClient(subscriptionID string) AnnotationsClient { func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
return original.NewAnnotationsClient(subscriptionID) return original.NewAnnotationsClient(subscriptionID)
@ -271,12 +271,6 @@ func NewExportConfigurationsClient(subscriptionID string) ExportConfigurationsCl
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient { func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
return original.NewExportConfigurationsClientWithBaseURI(baseURI, subscriptionID) return original.NewExportConfigurationsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewFavoriteClient(subscriptionID string) FavoriteClient {
return original.NewFavoriteClient(subscriptionID)
}
func NewFavoriteClientWithBaseURI(baseURI string, subscriptionID string) FavoriteClient {
return original.NewFavoriteClientWithBaseURI(baseURI, subscriptionID)
}
func NewFavoritesClient(subscriptionID string) FavoritesClient { func NewFavoritesClient(subscriptionID string) FavoritesClient {
return original.NewFavoritesClient(subscriptionID) return original.NewFavoritesClient(subscriptionID)
} }
@ -352,12 +346,6 @@ func NewWebTestsClient(subscriptionID string) WebTestsClient {
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient { func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
return original.NewWebTestsClientWithBaseURI(baseURI, subscriptionID) return original.NewWebTestsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewWorkbookClient(subscriptionID string) WorkbookClient {
return original.NewWorkbookClient(subscriptionID)
}
func NewWorkbookClientWithBaseURI(baseURI string, subscriptionID string) WorkbookClient {
return original.NewWorkbookClientWithBaseURI(baseURI, subscriptionID)
}
func NewWorkbooksClient(subscriptionID string) WorkbooksClient { func NewWorkbooksClient(subscriptionID string) WorkbooksClient {
return original.NewWorkbooksClient(subscriptionID) return original.NewWorkbooksClient(subscriptionID)
} }

View file

@ -82,6 +82,13 @@ const (
DscConfigurationStatePublished DscConfigurationState = original.DscConfigurationStatePublished DscConfigurationStatePublished DscConfigurationState = original.DscConfigurationStatePublished
) )
type GroupTypeEnum = original.GroupTypeEnum
const (
System GroupTypeEnum = original.System
User GroupTypeEnum = original.User
)
type HTTPStatusCode = original.HTTPStatusCode type HTTPStatusCode = original.HTTPStatusCode
const ( const (
@ -184,6 +191,7 @@ type KeyPermissions = original.KeyPermissions
const ( const (
Full KeyPermissions = original.Full Full KeyPermissions = original.Full
Read KeyPermissions = original.Read
) )
type ModuleProvisioningState = original.ModuleProvisioningState type ModuleProvisioningState = original.ModuleProvisioningState
@ -277,6 +285,7 @@ type ActivityListResultPage = original.ActivityListResultPage
type ActivityOutputType = original.ActivityOutputType type ActivityOutputType = original.ActivityOutputType
type ActivityParameter = original.ActivityParameter type ActivityParameter = original.ActivityParameter
type ActivityParameterSet = original.ActivityParameterSet type ActivityParameterSet = original.ActivityParameterSet
type ActivityParameterValidationSet = original.ActivityParameterValidationSet
type ActivityProperties = original.ActivityProperties type ActivityProperties = original.ActivityProperties
type AdvancedSchedule = original.AdvancedSchedule type AdvancedSchedule = original.AdvancedSchedule
type AdvancedScheduleMonthlyOccurrence = original.AdvancedScheduleMonthlyOccurrence type AdvancedScheduleMonthlyOccurrence = original.AdvancedScheduleMonthlyOccurrence
@ -373,7 +382,6 @@ type JobListResult = original.JobListResult
type JobListResultIterator = original.JobListResultIterator type JobListResultIterator = original.JobListResultIterator
type JobListResultPage = original.JobListResultPage type JobListResultPage = original.JobListResultPage
type JobProperties = original.JobProperties type JobProperties = original.JobProperties
type JobProvisioningStateProperty = original.JobProvisioningStateProperty
type JobSchedule = original.JobSchedule type JobSchedule = original.JobSchedule
type JobScheduleCreateParameters = original.JobScheduleCreateParameters type JobScheduleCreateParameters = original.JobScheduleCreateParameters
type JobScheduleCreateProperties = original.JobScheduleCreateProperties type JobScheduleCreateProperties = original.JobScheduleCreateProperties
@ -438,9 +446,9 @@ type Sku = original.Sku
type Statistics = original.Statistics type Statistics = original.Statistics
type StatisticsListResult = original.StatisticsListResult type StatisticsListResult = original.StatisticsListResult
type String = original.String type String = original.String
type SubResource = original.SubResource
type TestJob = original.TestJob type TestJob = original.TestJob
type TestJobCreateParameters = original.TestJobCreateParameters type TestJobCreateParameters = original.TestJobCreateParameters
type TrackedResource = original.TrackedResource
type TypeField = original.TypeField type TypeField = original.TypeField
type TypeFieldListResult = original.TypeFieldListResult type TypeFieldListResult = original.TypeFieldListResult
type Usage = original.Usage type Usage = original.Usage
@ -613,6 +621,9 @@ func PossibleDscConfigurationProvisioningStateValues() []DscConfigurationProvisi
func PossibleDscConfigurationStateValues() []DscConfigurationState { func PossibleDscConfigurationStateValues() []DscConfigurationState {
return original.PossibleDscConfigurationStateValues() return original.PossibleDscConfigurationStateValues()
} }
func PossibleGroupTypeEnumValues() []GroupTypeEnum {
return original.PossibleGroupTypeEnumValues()
}
func PossibleHTTPStatusCodeValues() []HTTPStatusCode { func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
return original.PossibleHTTPStatusCodeValues() return original.PossibleHTTPStatusCodeValues()
} }

View file

@ -46,13 +46,6 @@ const (
Landmarks Details = original.Landmarks Landmarks Details = original.Landmarks
) )
type DomainModels = original.DomainModels
const (
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
)
type ErrorCodes = original.ErrorCodes type ErrorCodes = original.ErrorCodes
const ( const (
@ -135,8 +128,8 @@ type AdultInfo = original.AdultInfo
type Category = original.Category type Category = original.Category
type CategoryDetail = original.CategoryDetail type CategoryDetail = original.CategoryDetail
type CelebritiesModel = original.CelebritiesModel type CelebritiesModel = original.CelebritiesModel
type CelebrityResults = original.CelebrityResults
type ColorInfo = original.ColorInfo type ColorInfo = original.ColorInfo
type DomainModelResult = original.DomainModelResult
type DomainModelResults = original.DomainModelResults type DomainModelResults = original.DomainModelResults
type Error = original.Error type Error = original.Error
type FaceDescription = original.FaceDescription type FaceDescription = original.FaceDescription
@ -149,6 +142,8 @@ type ImageMetadata = original.ImageMetadata
type ImageTag = original.ImageTag type ImageTag = original.ImageTag
type ImageType = original.ImageType type ImageType = original.ImageType
type ImageURL = original.ImageURL type ImageURL = original.ImageURL
type LandmarkResults = original.LandmarkResults
type LandmarkResultsLandmarksItem = original.LandmarkResultsLandmarksItem
type Line = original.Line type Line = original.Line
type ListModelsResult = original.ListModelsResult type ListModelsResult = original.ListModelsResult
type ModelDescription = original.ModelDescription type ModelDescription = original.ModelDescription
@ -174,9 +169,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
func PossibleDetailsValues() []Details { func PossibleDetailsValues() []Details {
return original.PossibleDetailsValues() return original.PossibleDetailsValues()
} }
func PossibleDomainModelsValues() []DomainModels {
return original.PossibleDomainModelsValues()
}
func PossibleErrorCodesValues() []ErrorCodes { func PossibleErrorCodesValues() []ErrorCodes {
return original.PossibleErrorCodesValues() return original.PossibleErrorCodesValues()
} }

View file

@ -56,12 +56,16 @@ type AzureRegions = original.AzureRegions
const ( const (
Australiaeast AzureRegions = original.Australiaeast Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2 Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus Westus AzureRegions = original.Westus

View file

@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
const ( const (
Australiaeast AzureRegions = original.Australiaeast Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2 Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus Westus AzureRegions = original.Westus

View file

@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
const ( const (
Australiaeast AzureRegions = original.Australiaeast Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2 Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus Westus AzureRegions = original.Westus

View file

@ -58,6 +58,8 @@ type BaiduCredentialProperties = original.BaiduCredentialProperties
type CheckAvailabilityParameters = original.CheckAvailabilityParameters type CheckAvailabilityParameters = original.CheckAvailabilityParameters
type CheckAvailabilityResult = original.CheckAvailabilityResult type CheckAvailabilityResult = original.CheckAvailabilityResult
type CreateOrUpdateParameters = original.CreateOrUpdateParameters type CreateOrUpdateParameters = original.CreateOrUpdateParameters
type DebugSendResponse = original.DebugSendResponse
type DebugSendResult = original.DebugSendResult
type ErrorResponse = original.ErrorResponse type ErrorResponse = original.ErrorResponse
type GcmCredential = original.GcmCredential type GcmCredential = original.GcmCredential
type GcmCredentialProperties = original.GcmCredentialProperties type GcmCredentialProperties = original.GcmCredentialProperties
@ -79,6 +81,7 @@ type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage type OperationListResultPage = original.OperationListResultPage
type PatchParameters = original.PatchParameters
type PnsCredentialsProperties = original.PnsCredentialsProperties type PnsCredentialsProperties = original.PnsCredentialsProperties
type PnsCredentialsResource = original.PnsCredentialsResource type PnsCredentialsResource = original.PnsCredentialsResource
type PolicykeyResource = original.PolicykeyResource type PolicykeyResource = original.PolicykeyResource

View file

@ -67,7 +67,6 @@ type SearchParameters = original.SearchParameters
type SearchResultsResponse = original.SearchResultsResponse type SearchResultsResponse = original.SearchResultsResponse
type SearchSchemaValue = original.SearchSchemaValue type SearchSchemaValue = original.SearchSchemaValue
type SearchSort = original.SearchSort type SearchSort = original.SearchSort
type SetObject = original.SetObject
type StorageAccount = original.StorageAccount type StorageAccount = original.StorageAccount
type StorageInsight = original.StorageInsight type StorageInsight = original.StorageInsight
type StorageInsightListResult = original.StorageInsightListResult type StorageInsightListResult = original.StorageInsightListResult
@ -81,7 +80,6 @@ type WorkspacePurgeBodyFilters = original.WorkspacePurgeBodyFilters
type WorkspacePurgeResponse = original.WorkspacePurgeResponse type WorkspacePurgeResponse = original.WorkspacePurgeResponse
type WorkspacePurgeStatusResponse = original.WorkspacePurgeStatusResponse type WorkspacePurgeStatusResponse = original.WorkspacePurgeStatusResponse
type WorkspacesGetSearchResultsFuture = original.WorkspacesGetSearchResultsFuture type WorkspacesGetSearchResultsFuture = original.WorkspacesGetSearchResultsFuture
type WorkspacesPurgeFuture = original.WorkspacesPurgeFuture
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type SavedSearchesClient = original.SavedSearchesClient type SavedSearchesClient = original.SavedSearchesClient
type StorageInsightsClient = original.StorageInsightsClient type StorageInsightsClient = original.StorageInsightsClient

View file

@ -52,17 +52,22 @@ const (
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
ContainerTypeCluster ContainerType = original.ContainerTypeCluster ContainerTypeCluster ContainerType = original.ContainerTypeCluster
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
ContainerTypeExchangeDAG ContainerType = original.ContainerTypeExchangeDAG
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
ContainerTypeHyperVCluster ContainerType = original.ContainerTypeHyperVCluster
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
ContainerTypeSharepointFarm ContainerType = original.ContainerTypeSharepointFarm
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
ContainerTypeSQLCluster ContainerType = original.ContainerTypeSQLCluster
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
ContainerTypeWindows ContainerType = original.ContainerTypeWindows ContainerTypeWindows ContainerType = original.ContainerTypeWindows
ContainerTypeWindowsClient ContainerType = original.ContainerTypeWindowsClient
) )
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
@ -74,13 +79,13 @@ const (
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1 ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1 ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
ContainerTypeMABWindowsContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeMABWindowsContainer
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1 ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1 ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1
) )
type CopyOptions = original.CopyOptions type CopyOptions = original.CopyOptions
@ -93,6 +98,14 @@ const (
CopyOptionsSkip CopyOptions = original.CopyOptionsSkip CopyOptionsSkip CopyOptions = original.CopyOptionsSkip
) )
type CreateMode = original.CreateMode
const (
CreateModeDefault CreateMode = original.CreateModeDefault
CreateModeInvalid CreateMode = original.CreateModeInvalid
CreateModeRecover CreateMode = original.CreateModeRecover
)
type DataSourceType = original.DataSourceType type DataSourceType = original.DataSourceType
const ( const (
@ -103,6 +116,7 @@ const (
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
DataSourceTypeSAPHanaDatabase DataSourceType = original.DataSourceTypeSAPHanaDatabase
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
@ -149,6 +163,7 @@ const (
type FeatureType = original.FeatureType type FeatureType = original.FeatureType
const ( const (
FeatureTypeAzureBackupGoals FeatureType = original.FeatureTypeAzureBackupGoals
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
) )
@ -241,6 +256,7 @@ const (
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
ItemTypeInvalid ItemType = original.ItemTypeInvalid ItemTypeInvalid ItemType = original.ItemTypeInvalid
ItemTypeSAPHanaDatabase ItemType = original.ItemTypeSAPHanaDatabase
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
@ -309,17 +325,22 @@ const (
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
MabServerTypeCluster MabServerType = original.MabServerTypeCluster MabServerTypeCluster MabServerType = original.MabServerTypeCluster
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
MabServerTypeExchangeDAG MabServerType = original.MabServerTypeExchangeDAG
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
MabServerTypeHyperVCluster MabServerType = original.MabServerTypeHyperVCluster
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
MabServerTypeSharepointFarm MabServerType = original.MabServerTypeSharepointFarm
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
MabServerTypeSQLCluster MabServerType = original.MabServerTypeSQLCluster
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
MabServerTypeWindows MabServerType = original.MabServerTypeWindows MabServerTypeWindows MabServerType = original.MabServerTypeWindows
MabServerTypeWindowsClient MabServerType = original.MabServerTypeWindowsClient
) )
type ManagementType = original.ManagementType type ManagementType = original.ManagementType
@ -402,24 +423,28 @@ const (
type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint
const ( const (
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
) )
type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest
const ( const (
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
) )
type OperationStatusValues = original.OperationStatusValues type OperationStatusValues = original.OperationStatusValues
@ -456,6 +481,8 @@ const (
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
@ -488,6 +515,8 @@ type ProtectedItemType = original.ProtectedItemType
const ( const (
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
ProtectedItemTypeAzureVMWorkloadProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadProtectedItem
ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
@ -501,8 +530,11 @@ const (
type ProtectionIntentItemType = original.ProtectionIntentItemType type ProtectionIntentItemType = original.ProtectionIntentItemType
const ( const (
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent
ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
ProtectionIntentItemTypeRecoveryServiceVaultItem ProtectionIntentItemType = original.ProtectionIntentItemTypeRecoveryServiceVaultItem
) )
type ProtectionState = original.ProtectionState type ProtectionState = original.ProtectionState
@ -697,25 +729,30 @@ const (
type WeekOfMonth = original.WeekOfMonth type WeekOfMonth = original.WeekOfMonth
const ( const (
First WeekOfMonth = original.First WeekOfMonthFirst WeekOfMonth = original.WeekOfMonthFirst
Fourth WeekOfMonth = original.Fourth WeekOfMonthFourth WeekOfMonth = original.WeekOfMonthFourth
Last WeekOfMonth = original.Last WeekOfMonthInvalid WeekOfMonth = original.WeekOfMonthInvalid
Second WeekOfMonth = original.Second WeekOfMonthLast WeekOfMonth = original.WeekOfMonthLast
Third WeekOfMonth = original.Third WeekOfMonthSecond WeekOfMonth = original.WeekOfMonthSecond
WeekOfMonthThird WeekOfMonth = original.WeekOfMonthThird
) )
type WorkloadItemType = original.WorkloadItemType type WorkloadItemType = original.WorkloadItemType
const ( const (
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase WorkloadItemTypeSAPHanaDatabase WorkloadItemType = original.WorkloadItemTypeSAPHanaDatabase
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance WorkloadItemTypeSAPHanaSystem WorkloadItemType = original.WorkloadItemTypeSAPHanaSystem
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
) )
type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem
const ( const (
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1
WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1 WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1 WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
@ -731,6 +768,7 @@ const (
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
WorkloadTypeSAPHanaDatabase WorkloadType = original.WorkloadTypeSAPHanaDatabase
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
@ -739,6 +777,7 @@ const (
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
) )
type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest
type AzureBackupServerContainer = original.AzureBackupServerContainer type AzureBackupServerContainer = original.AzureBackupServerContainer
type AzureBackupServerEngine = original.AzureBackupServerEngine type AzureBackupServerEngine = original.AzureBackupServerEngine
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
@ -763,6 +802,8 @@ type BasicAzureIaaSVMProtectedItem = original.BasicAzureIaaSVMProtectedItem
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
type BasicAzureRecoveryServiceVaultProtectionIntent = original.BasicAzureRecoveryServiceVaultProtectionIntent
type AzureRecoveryServiceVaultProtectionIntent = original.AzureRecoveryServiceVaultProtectionIntent
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
type AzureSQLContainer = original.AzureSQLContainer type AzureSQLContainer = original.AzureSQLContainer
@ -783,14 +824,23 @@ type BasicAzureVMWorkloadItem = original.BasicAzureVMWorkloadItem
type AzureVMWorkloadItem = original.AzureVMWorkloadItem type AzureVMWorkloadItem = original.AzureVMWorkloadItem
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
type BasicAzureVMWorkloadProtectedItem = original.BasicAzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy
type AzureVMWorkloadSAPHanaDatabaseProtectableItem = original.AzureVMWorkloadSAPHanaDatabaseProtectableItem
type AzureVMWorkloadSAPHanaDatabaseProtectedItem = original.AzureVMWorkloadSAPHanaDatabaseProtectedItem
type AzureVMWorkloadSAPHanaDatabaseWorkloadItem = original.AzureVMWorkloadSAPHanaDatabaseWorkloadItem
type AzureVMWorkloadSAPHanaSystemProtectableItem = original.AzureVMWorkloadSAPHanaSystemProtectableItem
type AzureVMWorkloadSAPHanaSystemWorkloadItem = original.AzureVMWorkloadSAPHanaSystemWorkloadItem
type AzureVMWorkloadSQLAvailabilityGroupProtectableItem = original.AzureVMWorkloadSQLAvailabilityGroupProtectableItem type AzureVMWorkloadSQLAvailabilityGroupProtectableItem = original.AzureVMWorkloadSQLAvailabilityGroupProtectableItem
type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
type BasicAzureWorkloadAutoProtectionIntent = original.BasicAzureWorkloadAutoProtectionIntent
type AzureWorkloadAutoProtectionIntent = original.AzureWorkloadAutoProtectionIntent
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
type AzureWorkloadContainer = original.AzureWorkloadContainer type AzureWorkloadContainer = original.AzureWorkloadContainer
@ -803,6 +853,13 @@ type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest
type AzureWorkloadSAPHanaPointInTimeRecoveryPoint = original.AzureWorkloadSAPHanaPointInTimeRecoveryPoint
type AzureWorkloadSAPHanaPointInTimeRestoreRequest = original.AzureWorkloadSAPHanaPointInTimeRestoreRequest
type BasicAzureWorkloadSAPHanaRecoveryPoint = original.BasicAzureWorkloadSAPHanaRecoveryPoint
type AzureWorkloadSAPHanaRecoveryPoint = original.AzureWorkloadSAPHanaRecoveryPoint
type BasicAzureWorkloadSAPHanaRestoreRequest = original.BasicAzureWorkloadSAPHanaRestoreRequest
type AzureWorkloadSAPHanaRestoreRequest = original.AzureWorkloadSAPHanaRestoreRequest
type AzureWorkloadSQLAutoProtectionIntent = original.AzureWorkloadSQLAutoProtectionIntent
type AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint type AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint
type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
@ -815,6 +872,7 @@ type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
type BMSContainerQueryObject = original.BMSContainerQueryObject type BMSContainerQueryObject = original.BMSContainerQueryObject
type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject
type BMSPOQueryObject = original.BMSPOQueryObject type BMSPOQueryObject = original.BMSPOQueryObject
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
type BMSRPQueryObject = original.BMSRPQueryObject type BMSRPQueryObject = original.BMSRPQueryObject
@ -1102,6 +1160,9 @@ func PossibleContainerTypeBasicProtectionContainerValues() []ContainerTypeBasicP
func PossibleCopyOptionsValues() []CopyOptions { func PossibleCopyOptionsValues() []CopyOptions {
return original.PossibleCopyOptionsValues() return original.PossibleCopyOptionsValues()
} }
func PossibleCreateModeValues() []CreateMode {
return original.PossibleCreateModeValues()
}
func PossibleDataSourceTypeValues() []DataSourceType { func PossibleDataSourceTypeValues() []DataSourceType {
return original.PossibleDataSourceTypeValues() return original.PossibleDataSourceTypeValues()
} }

View file

@ -22,8 +22,12 @@ package adhybridhealthservice
import original "github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice" import original "github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice"
type AdDomainServiceMembersClient = original.AdDomainServiceMembersClient type AdDomainServiceMembersClient = original.AdDomainServiceMembersClient
type AddsServiceClient = original.AddsServiceClient
type AddsServiceMembersClient = original.AddsServiceMembersClient type AddsServiceMembersClient = original.AddsServiceMembersClient
type AddsServicesClient = original.AddsServicesClient type AddsServicesClient = original.AddsServicesClient
type AddsServicesReplicationStatusClient = original.AddsServicesReplicationStatusClient
type AddsServicesServiceMembersClient = original.AddsServicesServiceMembersClient
type AddsServicesUserPreferenceClient = original.AddsServicesUserPreferenceClient
type AlertsClient = original.AlertsClient type AlertsClient = original.AlertsClient
const ( const (
@ -230,6 +234,7 @@ type Partition = original.Partition
type PartitionScope = original.PartitionScope type PartitionScope = original.PartitionScope
type PasswordHashSyncConfiguration = original.PasswordHashSyncConfiguration type PasswordHashSyncConfiguration = original.PasswordHashSyncConfiguration
type PasswordManagementSettings = original.PasswordManagementSettings type PasswordManagementSettings = original.PasswordManagementSettings
type ReplicationDetailsList = original.ReplicationDetailsList
type ReplicationStatus = original.ReplicationStatus type ReplicationStatus = original.ReplicationStatus
type ReplicationSummary = original.ReplicationSummary type ReplicationSummary = original.ReplicationSummary
type ReplicationSummaryList = original.ReplicationSummaryList type ReplicationSummaryList = original.ReplicationSummaryList
@ -250,8 +255,11 @@ type ServicesPage = original.ServicesPage
type TabularExportError = original.TabularExportError type TabularExportError = original.TabularExportError
type Tenant = original.Tenant type Tenant = original.Tenant
type TenantOnboardingDetails = original.TenantOnboardingDetails type TenantOnboardingDetails = original.TenantOnboardingDetails
type UserPreference = original.UserPreference
type ValueDelta = original.ValueDelta type ValueDelta = original.ValueDelta
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type ReportsClient = original.ReportsClient
type ServiceClient = original.ServiceClient
type ServiceMembersClient = original.ServiceMembersClient type ServiceMembersClient = original.ServiceMembersClient
type ServicesClient = original.ServicesClient type ServicesClient = original.ServicesClient
@ -261,6 +269,12 @@ func NewAdDomainServiceMembersClient() AdDomainServiceMembersClient {
func NewAdDomainServiceMembersClientWithBaseURI(baseURI string) AdDomainServiceMembersClient { func NewAdDomainServiceMembersClientWithBaseURI(baseURI string) AdDomainServiceMembersClient {
return original.NewAdDomainServiceMembersClientWithBaseURI(baseURI) return original.NewAdDomainServiceMembersClientWithBaseURI(baseURI)
} }
func NewAddsServiceClient() AddsServiceClient {
return original.NewAddsServiceClient()
}
func NewAddsServiceClientWithBaseURI(baseURI string) AddsServiceClient {
return original.NewAddsServiceClientWithBaseURI(baseURI)
}
func NewAddsServiceMembersClient() AddsServiceMembersClient { func NewAddsServiceMembersClient() AddsServiceMembersClient {
return original.NewAddsServiceMembersClient() return original.NewAddsServiceMembersClient()
} }
@ -273,6 +287,24 @@ func NewAddsServicesClient() AddsServicesClient {
func NewAddsServicesClientWithBaseURI(baseURI string) AddsServicesClient { func NewAddsServicesClientWithBaseURI(baseURI string) AddsServicesClient {
return original.NewAddsServicesClientWithBaseURI(baseURI) return original.NewAddsServicesClientWithBaseURI(baseURI)
} }
func NewAddsServicesReplicationStatusClient() AddsServicesReplicationStatusClient {
return original.NewAddsServicesReplicationStatusClient()
}
func NewAddsServicesReplicationStatusClientWithBaseURI(baseURI string) AddsServicesReplicationStatusClient {
return original.NewAddsServicesReplicationStatusClientWithBaseURI(baseURI)
}
func NewAddsServicesServiceMembersClient() AddsServicesServiceMembersClient {
return original.NewAddsServicesServiceMembersClient()
}
func NewAddsServicesServiceMembersClientWithBaseURI(baseURI string) AddsServicesServiceMembersClient {
return original.NewAddsServicesServiceMembersClientWithBaseURI(baseURI)
}
func NewAddsServicesUserPreferenceClient() AddsServicesUserPreferenceClient {
return original.NewAddsServicesUserPreferenceClient()
}
func NewAddsServicesUserPreferenceClientWithBaseURI(baseURI string) AddsServicesUserPreferenceClient {
return original.NewAddsServicesUserPreferenceClientWithBaseURI(baseURI)
}
func NewAlertsClient() AlertsClient { func NewAlertsClient() AlertsClient {
return original.NewAlertsClient() return original.NewAlertsClient()
} }
@ -336,6 +368,18 @@ func NewOperationsClient() OperationsClient {
func NewOperationsClientWithBaseURI(baseURI string) OperationsClient { func NewOperationsClientWithBaseURI(baseURI string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI) return original.NewOperationsClientWithBaseURI(baseURI)
} }
func NewReportsClient() ReportsClient {
return original.NewReportsClient()
}
func NewReportsClientWithBaseURI(baseURI string) ReportsClient {
return original.NewReportsClientWithBaseURI(baseURI)
}
func NewServiceClient() ServiceClient {
return original.NewServiceClient()
}
func NewServiceClientWithBaseURI(baseURI string) ServiceClient {
return original.NewServiceClientWithBaseURI(baseURI)
}
func NewServiceMembersClient() ServiceMembersClient { func NewServiceMembersClient() ServiceMembersClient {
return original.NewServiceMembersClient() return original.NewServiceMembersClient()
} }

View file

@ -64,7 +64,6 @@ type OperationEntityListResult = original.OperationEntityListResult
type OperationEntityListResultIterator = original.OperationEntityListResultIterator type OperationEntityListResultIterator = original.OperationEntityListResultIterator
type OperationEntityListResultPage = original.OperationEntityListResultPage type OperationEntityListResultPage = original.OperationEntityListResultPage
type RecommendationProperties = original.RecommendationProperties type RecommendationProperties = original.RecommendationProperties
type RecommendationsGetGenerateStatusFuture = original.RecommendationsGetGenerateStatusFuture
type Resource = original.Resource type Resource = original.Resource
type ResourceRecommendationBase = original.ResourceRecommendationBase type ResourceRecommendationBase = original.ResourceRecommendationBase
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult

View file

@ -21,7 +21,7 @@ package insights
import original "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights" import original "github.com/Azure/azure-sdk-for-go/services/appinsights/mgmt/2015-05-01/insights"
type AnalyticsItemClient = original.AnalyticsItemClient type AnalyticsItemsClient = original.AnalyticsItemsClient
type AnnotationsClient = original.AnnotationsClient type AnnotationsClient = original.AnnotationsClient
type APIKeysClient = original.APIKeysClient type APIKeysClient = original.APIKeysClient
@ -36,7 +36,6 @@ type ComponentFeatureCapabilitiesClient = original.ComponentFeatureCapabilitiesC
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
type ComponentsClient = original.ComponentsClient type ComponentsClient = original.ComponentsClient
type ExportConfigurationsClient = original.ExportConfigurationsClient type ExportConfigurationsClient = original.ExportConfigurationsClient
type FavoriteClient = original.FavoriteClient
type FavoritesClient = original.FavoritesClient type FavoritesClient = original.FavoritesClient
type ApplicationType = original.ApplicationType type ApplicationType = original.ApplicationType
@ -142,6 +141,7 @@ const (
type Annotation = original.Annotation type Annotation = original.Annotation
type AnnotationError = original.AnnotationError type AnnotationError = original.AnnotationError
type AnnotationsListResult = original.AnnotationsListResult
type APIKeyRequest = original.APIKeyRequest type APIKeyRequest = original.APIKeyRequest
type ApplicationInsightsComponent = original.ApplicationInsightsComponent type ApplicationInsightsComponent = original.ApplicationInsightsComponent
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
@ -170,7 +170,7 @@ type ComponentPurgeBody = original.ComponentPurgeBody
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
type ComponentPurgeResponse = original.ComponentPurgeResponse type ComponentPurgeResponse = original.ComponentPurgeResponse
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
type ComponentsPurgeFuture = original.ComponentsPurgeFuture type ComponentsResource = original.ComponentsResource
type ErrorFieldContract = original.ErrorFieldContract type ErrorFieldContract = original.ErrorFieldContract
type ErrorResponse = original.ErrorResponse type ErrorResponse = original.ErrorResponse
type InnerError = original.InnerError type InnerError = original.InnerError
@ -180,13 +180,11 @@ type ListApplicationInsightsComponentAnalyticsItem = original.ListApplicationIns
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
type ListWorkItemConfiguration = original.ListWorkItemConfiguration
type Operation = original.Operation type Operation = original.Operation
type OperationDisplay = original.OperationDisplay type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage type OperationListResultPage = original.OperationListResultPage
type Resource = original.Resource
type SetObject = original.SetObject type SetObject = original.SetObject
type TagsResource = original.TagsResource type TagsResource = original.TagsResource
type WebTest = original.WebTest type WebTest = original.WebTest
@ -196,26 +194,28 @@ type WebTestListResultIterator = original.WebTestListResultIterator
type WebTestListResultPage = original.WebTestListResultPage type WebTestListResultPage = original.WebTestListResultPage
type WebTestProperties = original.WebTestProperties type WebTestProperties = original.WebTestProperties
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
type WebtestsResource = original.WebtestsResource
type Workbook = original.Workbook type Workbook = original.Workbook
type WorkbookError = original.WorkbookError type WorkbookError = original.WorkbookError
type WorkbookProperties = original.WorkbookProperties type WorkbookProperties = original.WorkbookProperties
type Workbooks = original.Workbooks type WorkbookResource = original.WorkbookResource
type WorkbooksListResult = original.WorkbooksListResult
type WorkItemConfiguration = original.WorkItemConfiguration type WorkItemConfiguration = original.WorkItemConfiguration
type WorkItemConfigurationError = original.WorkItemConfigurationError type WorkItemConfigurationError = original.WorkItemConfigurationError
type WorkItemConfigurationsListResult = original.WorkItemConfigurationsListResult
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
type WebTestLocationsClient = original.WebTestLocationsClient type WebTestLocationsClient = original.WebTestLocationsClient
type WebTestsClient = original.WebTestsClient type WebTestsClient = original.WebTestsClient
type WorkbookClient = original.WorkbookClient
type WorkbooksClient = original.WorkbooksClient type WorkbooksClient = original.WorkbooksClient
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient { func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
return original.NewAnalyticsItemClient(subscriptionID) return original.NewAnalyticsItemsClient(subscriptionID)
} }
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient { func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
return original.NewAnalyticsItemClientWithBaseURI(baseURI, subscriptionID) return original.NewAnalyticsItemsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewAnnotationsClient(subscriptionID string) AnnotationsClient { func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
return original.NewAnnotationsClient(subscriptionID) return original.NewAnnotationsClient(subscriptionID)
@ -271,12 +271,6 @@ func NewExportConfigurationsClient(subscriptionID string) ExportConfigurationsCl
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient { func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
return original.NewExportConfigurationsClientWithBaseURI(baseURI, subscriptionID) return original.NewExportConfigurationsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewFavoriteClient(subscriptionID string) FavoriteClient {
return original.NewFavoriteClient(subscriptionID)
}
func NewFavoriteClientWithBaseURI(baseURI string, subscriptionID string) FavoriteClient {
return original.NewFavoriteClientWithBaseURI(baseURI, subscriptionID)
}
func NewFavoritesClient(subscriptionID string) FavoritesClient { func NewFavoritesClient(subscriptionID string) FavoritesClient {
return original.NewFavoritesClient(subscriptionID) return original.NewFavoritesClient(subscriptionID)
} }
@ -352,12 +346,6 @@ func NewWebTestsClient(subscriptionID string) WebTestsClient {
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient { func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
return original.NewWebTestsClientWithBaseURI(baseURI, subscriptionID) return original.NewWebTestsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewWorkbookClient(subscriptionID string) WorkbookClient {
return original.NewWorkbookClient(subscriptionID)
}
func NewWorkbookClientWithBaseURI(baseURI string, subscriptionID string) WorkbookClient {
return original.NewWorkbookClientWithBaseURI(baseURI, subscriptionID)
}
func NewWorkbooksClient(subscriptionID string) WorkbooksClient { func NewWorkbooksClient(subscriptionID string) WorkbooksClient {
return original.NewWorkbooksClient(subscriptionID) return original.NewWorkbooksClient(subscriptionID)
} }

View file

@ -112,8 +112,8 @@ const (
Chainer ToolType = original.Chainer Chainer ToolType = original.Chainer
Cntk ToolType = original.Cntk Cntk ToolType = original.Cntk
Custom ToolType = original.Custom Custom ToolType = original.Custom
Custommpi ToolType = original.Custommpi
Horovod ToolType = original.Horovod Horovod ToolType = original.Horovod
Mpi ToolType = original.Mpi
Tensorflow ToolType = original.Tensorflow Tensorflow ToolType = original.Tensorflow
) )
@ -242,6 +242,7 @@ type WorkspaceListResultPage = original.WorkspaceListResultPage
type WorkspaceProperties = original.WorkspaceProperties type WorkspaceProperties = original.WorkspaceProperties
type WorkspacesCreateFuture = original.WorkspacesCreateFuture type WorkspacesCreateFuture = original.WorkspacesCreateFuture
type WorkspacesDeleteFuture = original.WorkspacesDeleteFuture type WorkspacesDeleteFuture = original.WorkspacesDeleteFuture
type WorkspaceUpdateParameters = original.WorkspaceUpdateParameters
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type UsagesClient = original.UsagesClient type UsagesClient = original.UsagesClient
type WorkspacesClient = original.WorkspacesClient type WorkspacesClient = original.WorkspacesClient

View file

@ -0,0 +1,176 @@
// +build go1.9
// Copyright 2018 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package autosuggest
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/autosuggest"
const (
DefaultBaseURI = original.DefaultBaseURI
)
type BaseClient = original.BaseClient
type ErrorCode = original.ErrorCode
const (
InsufficientAuthorization ErrorCode = original.InsufficientAuthorization
InvalidAuthorization ErrorCode = original.InvalidAuthorization
InvalidRequest ErrorCode = original.InvalidRequest
None ErrorCode = original.None
RateLimitExceeded ErrorCode = original.RateLimitExceeded
ServerError ErrorCode = original.ServerError
)
type ResponseFormat = original.ResponseFormat
const (
JSON ResponseFormat = original.JSON
JSONLd ResponseFormat = original.JSONLd
)
type SafeSearch = original.SafeSearch
const (
Moderate SafeSearch = original.Moderate
Off SafeSearch = original.Off
Strict SafeSearch = original.Strict
)
type ScenarioType = original.ScenarioType
const (
Custom ScenarioType = original.Custom
PersonalSearchDocuments ScenarioType = original.PersonalSearchDocuments
PersonalSearchTags ScenarioType = original.PersonalSearchTags
SearchHistory ScenarioType = original.SearchHistory
StoreApps ScenarioType = original.StoreApps
Unknown ScenarioType = original.Unknown
Web ScenarioType = original.Web
)
type SearchKind = original.SearchKind
const (
CustomSearch SearchKind = original.CustomSearch
DocumentSearch SearchKind = original.DocumentSearch
HistorySearch SearchKind = original.HistorySearch
LocationSearch SearchKind = original.LocationSearch
TagSearch SearchKind = original.TagSearch
WebSearch SearchKind = original.WebSearch
)
type Type = original.Type
const (
TypeSuggestionsSuggestionGroup Type = original.TypeSuggestionsSuggestionGroup
)
type TypeBasicError = original.TypeBasicError
const (
TypeError TypeBasicError = original.TypeError
)
type TypeBasicQueryContext = original.TypeBasicQueryContext
const (
TypeQueryContext TypeBasicQueryContext = original.TypeQueryContext
)
type TypeBasicResponseBase = original.TypeBasicResponseBase
const (
TypeAction TypeBasicResponseBase = original.TypeAction
TypeAnswer TypeBasicResponseBase = original.TypeAnswer
TypeCreativeWork TypeBasicResponseBase = original.TypeCreativeWork
TypeErrorResponse TypeBasicResponseBase = original.TypeErrorResponse
TypeIdentifiable TypeBasicResponseBase = original.TypeIdentifiable
TypeResponse TypeBasicResponseBase = original.TypeResponse
TypeResponseBase TypeBasicResponseBase = original.TypeResponseBase
TypeSearchAction TypeBasicResponseBase = original.TypeSearchAction
TypeSearchResultsAnswer TypeBasicResponseBase = original.TypeSearchResultsAnswer
TypeSuggestions TypeBasicResponseBase = original.TypeSuggestions
TypeThing TypeBasicResponseBase = original.TypeThing
)
type BasicAction = original.BasicAction
type Action = original.Action
type BasicAnswer = original.BasicAnswer
type Answer = original.Answer
type BasicCreativeWork = original.BasicCreativeWork
type CreativeWork = original.CreativeWork
type BasicError = original.BasicError
type Error = original.Error
type ErrorResponse = original.ErrorResponse
type BasicIdentifiable = original.BasicIdentifiable
type Identifiable = original.Identifiable
type BasicQueryContext = original.BasicQueryContext
type QueryContext = original.QueryContext
type BasicResponse = original.BasicResponse
type Response = original.Response
type BasicResponseBase = original.BasicResponseBase
type ResponseBase = original.ResponseBase
type SearchAction = original.SearchAction
type BasicSearchResultsAnswer = original.BasicSearchResultsAnswer
type SearchResultsAnswer = original.SearchResultsAnswer
type Suggestions = original.Suggestions
type BasicSuggestionsSuggestionGroup = original.BasicSuggestionsSuggestionGroup
type SuggestionsSuggestionGroup = original.SuggestionsSuggestionGroup
type BasicThing = original.BasicThing
type Thing = original.Thing
func New() BaseClient {
return original.New()
}
func NewWithBaseURI(baseURI string) BaseClient {
return original.NewWithBaseURI(baseURI)
}
func PossibleErrorCodeValues() []ErrorCode {
return original.PossibleErrorCodeValues()
}
func PossibleResponseFormatValues() []ResponseFormat {
return original.PossibleResponseFormatValues()
}
func PossibleSafeSearchValues() []SafeSearch {
return original.PossibleSafeSearchValues()
}
func PossibleScenarioTypeValues() []ScenarioType {
return original.PossibleScenarioTypeValues()
}
func PossibleSearchKindValues() []SearchKind {
return original.PossibleSearchKindValues()
}
func PossibleTypeValues() []Type {
return original.PossibleTypeValues()
}
func PossibleTypeBasicErrorValues() []TypeBasicError {
return original.PossibleTypeBasicErrorValues()
}
func PossibleTypeBasicQueryContextValues() []TypeBasicQueryContext {
return original.PossibleTypeBasicQueryContextValues()
}
func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase {
return original.PossibleTypeBasicResponseBaseValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}

View file

@ -19,7 +19,7 @@
package computervision package computervision
import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/computervision" import original "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v2.0/computervision"
type BaseClient = original.BaseClient type BaseClient = original.BaseClient
type AzureRegions = original.AzureRegions type AzureRegions = original.AzureRegions
@ -46,13 +46,6 @@ const (
Landmarks Details = original.Landmarks Landmarks Details = original.Landmarks
) )
type DomainModels = original.DomainModels
const (
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
)
type ErrorCodes = original.ErrorCodes type ErrorCodes = original.ErrorCodes
const ( const (
@ -119,6 +112,13 @@ const (
Succeeded TextOperationStatusCodes = original.Succeeded Succeeded TextOperationStatusCodes = original.Succeeded
) )
type TextRecognitionMode = original.TextRecognitionMode
const (
Handwritten TextRecognitionMode = original.Handwritten
Printed TextRecognitionMode = original.Printed
)
type VisualFeatureTypes = original.VisualFeatureTypes type VisualFeatureTypes = original.VisualFeatureTypes
const ( const (
@ -135,8 +135,8 @@ type AdultInfo = original.AdultInfo
type Category = original.Category type Category = original.Category
type CategoryDetail = original.CategoryDetail type CategoryDetail = original.CategoryDetail
type CelebritiesModel = original.CelebritiesModel type CelebritiesModel = original.CelebritiesModel
type CelebrityResults = original.CelebrityResults
type ColorInfo = original.ColorInfo type ColorInfo = original.ColorInfo
type DomainModelResult = original.DomainModelResult
type DomainModelResults = original.DomainModelResults type DomainModelResults = original.DomainModelResults
type Error = original.Error type Error = original.Error
type FaceDescription = original.FaceDescription type FaceDescription = original.FaceDescription
@ -149,6 +149,8 @@ type ImageMetadata = original.ImageMetadata
type ImageTag = original.ImageTag type ImageTag = original.ImageTag
type ImageType = original.ImageType type ImageType = original.ImageType
type ImageURL = original.ImageURL type ImageURL = original.ImageURL
type LandmarkResults = original.LandmarkResults
type LandmarksModel = original.LandmarksModel
type Line = original.Line type Line = original.Line
type ListModelsResult = original.ListModelsResult type ListModelsResult = original.ListModelsResult
type ModelDescription = original.ModelDescription type ModelDescription = original.ModelDescription
@ -174,9 +176,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
func PossibleDetailsValues() []Details { func PossibleDetailsValues() []Details {
return original.PossibleDetailsValues() return original.PossibleDetailsValues()
} }
func PossibleDomainModelsValues() []DomainModels {
return original.PossibleDomainModelsValues()
}
func PossibleErrorCodesValues() []ErrorCodes { func PossibleErrorCodesValues() []ErrorCodes {
return original.PossibleErrorCodesValues() return original.PossibleErrorCodesValues()
} }
@ -189,6 +188,9 @@ func PossibleOcrLanguagesValues() []OcrLanguages {
func PossibleTextOperationStatusCodesValues() []TextOperationStatusCodes { func PossibleTextOperationStatusCodesValues() []TextOperationStatusCodes {
return original.PossibleTextOperationStatusCodesValues() return original.PossibleTextOperationStatusCodesValues()
} }
func PossibleTextRecognitionModeValues() []TextRecognitionMode {
return original.PossibleTextRecognitionModeValues()
}
func PossibleVisualFeatureTypesValues() []VisualFeatureTypes { func PossibleVisualFeatureTypesValues() []VisualFeatureTypes {
return original.PossibleVisualFeatureTypesValues() return original.PossibleVisualFeatureTypesValues()
} }

View file

@ -56,12 +56,16 @@ type AzureRegions = original.AzureRegions
const ( const (
Australiaeast AzureRegions = original.Australiaeast Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2 Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus Westus AzureRegions = original.Westus

View file

@ -31,12 +31,16 @@ type AzureRegions = original.AzureRegions
const ( const (
Australiaeast AzureRegions = original.Australiaeast Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2 Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus Westus AzureRegions = original.Westus

View file

@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
const ( const (
Australiaeast AzureRegions = original.Australiaeast Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2 Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus Westus AzureRegions = original.Westus

View file

@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
const ( const (
Australiaeast AzureRegions = original.Australiaeast Australiaeast AzureRegions = original.Australiaeast
Brazilsouth AzureRegions = original.Brazilsouth Brazilsouth AzureRegions = original.Brazilsouth
Canadacentral AzureRegions = original.Canadacentral
Centralindia AzureRegions = original.Centralindia
Eastasia AzureRegions = original.Eastasia Eastasia AzureRegions = original.Eastasia
Eastus AzureRegions = original.Eastus Eastus AzureRegions = original.Eastus
Eastus2 AzureRegions = original.Eastus2 Eastus2 AzureRegions = original.Eastus2
Japaneast AzureRegions = original.Japaneast
Northeurope AzureRegions = original.Northeurope Northeurope AzureRegions = original.Northeurope
Southcentralus AzureRegions = original.Southcentralus Southcentralus AzureRegions = original.Southcentralus
Southeastasia AzureRegions = original.Southeastasia Southeastasia AzureRegions = original.Southeastasia
Uksouth AzureRegions = original.Uksouth
Westcentralus AzureRegions = original.Westcentralus Westcentralus AzureRegions = original.Westcentralus
Westeurope AzureRegions = original.Westeurope Westeurope AzureRegions = original.Westeurope
Westus AzureRegions = original.Westus Westus AzureRegions = original.Westus

View file

@ -55,13 +55,24 @@ type Forecast = original.Forecast
type ForecastProperties = original.ForecastProperties type ForecastProperties = original.ForecastProperties
type ForecastPropertiesConfidenceLevelsItem = original.ForecastPropertiesConfidenceLevelsItem type ForecastPropertiesConfidenceLevelsItem = original.ForecastPropertiesConfidenceLevelsItem
type ForecastsListResult = original.ForecastsListResult type ForecastsListResult = original.ForecastsListResult
type MeterDetails = original.MeterDetails
type Operation = original.Operation type Operation = original.Operation
type OperationDisplay = original.OperationDisplay type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage type OperationListResultPage = original.OperationListResultPage
type PriceSheetModel = original.PriceSheetModel
type PriceSheetProperties = original.PriceSheetProperties
type PriceSheetResult = original.PriceSheetResult
type Resource = original.Resource type Resource = original.Resource
type UsageDetail = original.UsageDetail
type UsageDetailProperties = original.UsageDetailProperties
type UsageDetailsListResult = original.UsageDetailsListResult
type UsageDetailsListResultIterator = original.UsageDetailsListResultIterator
type UsageDetailsListResultPage = original.UsageDetailsListResultPage
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type PriceSheetClient = original.PriceSheetClient
type UsageDetailsClient = original.UsageDetailsClient
func New(subscriptionID string) BaseClient { func New(subscriptionID string) BaseClient {
return original.New(subscriptionID) return original.New(subscriptionID)
@ -90,6 +101,18 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewPriceSheetClient(subscriptionID string) PriceSheetClient {
return original.NewPriceSheetClient(subscriptionID)
}
func NewPriceSheetClientWithBaseURI(baseURI string, subscriptionID string) PriceSheetClient {
return original.NewPriceSheetClientWithBaseURI(baseURI, subscriptionID)
}
func NewUsageDetailsClient(subscriptionID string) UsageDetailsClient {
return original.NewUsageDetailsClient(subscriptionID)
}
func NewUsageDetailsClientWithBaseURI(baseURI string, subscriptionID string) UsageDetailsClient {
return original.NewUsageDetailsClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string { func UserAgent() string {
return original.UserAgent() + " profiles/preview" return original.UserAgent() + " profiles/preview"
} }

View file

@ -19,7 +19,7 @@
package containerservice package containerservice
import original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2017-09-30/containerservice" import original "github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2018-03-31/containerservice"
const ( const (
DefaultBaseURI = original.DefaultBaseURI DefaultBaseURI = original.DefaultBaseURI
@ -28,6 +28,19 @@ const (
type BaseClient = original.BaseClient type BaseClient = original.BaseClient
type ContainerServicesClient = original.ContainerServicesClient type ContainerServicesClient = original.ContainerServicesClient
type ManagedClustersClient = original.ManagedClustersClient type ManagedClustersClient = original.ManagedClustersClient
type NetworkPlugin = original.NetworkPlugin
const (
Azure NetworkPlugin = original.Azure
Kubenet NetworkPlugin = original.Kubenet
)
type NetworkPolicy = original.NetworkPolicy
const (
Calico NetworkPolicy = original.Calico
)
type OrchestratorTypes = original.OrchestratorTypes type OrchestratorTypes = original.OrchestratorTypes
const ( const (
@ -244,7 +257,10 @@ type ListResult = original.ListResult
type ListResultIterator = original.ListResultIterator type ListResultIterator = original.ListResultIterator
type ListResultPage = original.ListResultPage type ListResultPage = original.ListResultPage
type ManagedCluster = original.ManagedCluster type ManagedCluster = original.ManagedCluster
type ManagedClusterAADProfile = original.ManagedClusterAADProfile
type ManagedClusterAccessProfile = original.ManagedClusterAccessProfile type ManagedClusterAccessProfile = original.ManagedClusterAccessProfile
type ManagedClusterAddonProfile = original.ManagedClusterAddonProfile
type ManagedClusterAgentPoolProfile = original.ManagedClusterAgentPoolProfile
type ManagedClusterListResult = original.ManagedClusterListResult type ManagedClusterListResult = original.ManagedClusterListResult
type ManagedClusterListResultIterator = original.ManagedClusterListResultIterator type ManagedClusterListResultIterator = original.ManagedClusterListResultIterator
type ManagedClusterListResultPage = original.ManagedClusterListResultPage type ManagedClusterListResultPage = original.ManagedClusterListResultPage
@ -255,6 +271,10 @@ type ManagedClustersDeleteFuture = original.ManagedClustersDeleteFuture
type ManagedClusterUpgradeProfile = original.ManagedClusterUpgradeProfile type ManagedClusterUpgradeProfile = original.ManagedClusterUpgradeProfile
type ManagedClusterUpgradeProfileProperties = original.ManagedClusterUpgradeProfileProperties type ManagedClusterUpgradeProfileProperties = original.ManagedClusterUpgradeProfileProperties
type MasterProfile = original.MasterProfile type MasterProfile = original.MasterProfile
type NetworkProfile = original.NetworkProfile
type OperationListResult = original.OperationListResult
type OperationValue = original.OperationValue
type OperationValueDisplay = original.OperationValueDisplay
type OrchestratorProfile = original.OrchestratorProfile type OrchestratorProfile = original.OrchestratorProfile
type OrchestratorProfileType = original.OrchestratorProfileType type OrchestratorProfileType = original.OrchestratorProfileType
type OrchestratorVersionProfile = original.OrchestratorVersionProfile type OrchestratorVersionProfile = original.OrchestratorVersionProfile
@ -267,6 +287,7 @@ type SSHConfiguration = original.SSHConfiguration
type SSHPublicKey = original.SSHPublicKey type SSHPublicKey = original.SSHPublicKey
type VMDiagnostics = original.VMDiagnostics type VMDiagnostics = original.VMDiagnostics
type WindowsProfile = original.WindowsProfile type WindowsProfile = original.WindowsProfile
type OperationsClient = original.OperationsClient
func New(subscriptionID string) BaseClient { func New(subscriptionID string) BaseClient {
return original.New(subscriptionID) return original.New(subscriptionID)
@ -286,6 +307,12 @@ func NewManagedClustersClient(subscriptionID string) ManagedClustersClient {
func NewManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) ManagedClustersClient { func NewManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) ManagedClustersClient {
return original.NewManagedClustersClientWithBaseURI(baseURI, subscriptionID) return original.NewManagedClustersClientWithBaseURI(baseURI, subscriptionID)
} }
func PossibleNetworkPluginValues() []NetworkPlugin {
return original.PossibleNetworkPluginValues()
}
func PossibleNetworkPolicyValues() []NetworkPolicy {
return original.PossibleNetworkPolicyValues()
}
func PossibleOrchestratorTypesValues() []OrchestratorTypes { func PossibleOrchestratorTypesValues() []OrchestratorTypes {
return original.PossibleOrchestratorTypesValues() return original.PossibleOrchestratorTypesValues()
} }
@ -298,6 +325,12 @@ func PossibleStorageProfileTypesValues() []StorageProfileTypes {
func PossibleVMSizeTypesValues() []VMSizeTypes { func PossibleVMSizeTypesValues() []VMSizeTypes {
return original.PossibleVMSizeTypesValues() return original.PossibleVMSizeTypesValues()
} }
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string { func UserAgent() string {
return original.UserAgent() + " profiles/preview" return original.UserAgent() + " profiles/preview"
} }

View file

@ -19,7 +19,7 @@
package datafactory package datafactory
import original "github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2017-09-01-preview/datafactory" import original "github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory"
type ActivityRunsClient = original.ActivityRunsClient type ActivityRunsClient = original.ActivityRunsClient
@ -42,14 +42,6 @@ const (
AuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = original.AuthenticationTypeWebLinkedServiceTypeProperties AuthenticationTypeWebLinkedServiceTypeProperties AuthenticationType = original.AuthenticationTypeWebLinkedServiceTypeProperties
) )
type AuthorizationType = original.AuthorizationType
const (
AuthorizationTypeKey AuthorizationType = original.AuthorizationTypeKey
AuthorizationTypeLinkedIntegrationRuntimeProperties AuthorizationType = original.AuthorizationTypeLinkedIntegrationRuntimeProperties
AuthorizationTypeRBAC AuthorizationType = original.AuthorizationTypeRBAC
)
type AzureSearchIndexWriteBehaviorType = original.AzureSearchIndexWriteBehaviorType type AzureSearchIndexWriteBehaviorType = original.AzureSearchIndexWriteBehaviorType
const ( const (
@ -57,6 +49,13 @@ const (
Upload AzureSearchIndexWriteBehaviorType = original.Upload Upload AzureSearchIndexWriteBehaviorType = original.Upload
) )
type BlobEventTypes = original.BlobEventTypes
const (
MicrosoftStorageBlobCreated BlobEventTypes = original.MicrosoftStorageBlobCreated
MicrosoftStorageBlobDeleted BlobEventTypes = original.MicrosoftStorageBlobDeleted
)
type CassandraSourceReadConsistencyLevels = original.CassandraSourceReadConsistencyLevels type CassandraSourceReadConsistencyLevels = original.CassandraSourceReadConsistencyLevels
const ( const (
@ -321,38 +320,6 @@ const (
PhoenixAuthenticationTypeWindowsAzureHDInsightService PhoenixAuthenticationType = original.PhoenixAuthenticationTypeWindowsAzureHDInsightService PhoenixAuthenticationTypeWindowsAzureHDInsightService PhoenixAuthenticationType = original.PhoenixAuthenticationTypeWindowsAzureHDInsightService
) )
type PipelineRunQueryFilterOperand = original.PipelineRunQueryFilterOperand
const (
PipelineName PipelineRunQueryFilterOperand = original.PipelineName
RunEnd PipelineRunQueryFilterOperand = original.RunEnd
RunStart PipelineRunQueryFilterOperand = original.RunStart
Status PipelineRunQueryFilterOperand = original.Status
)
type PipelineRunQueryFilterOperator = original.PipelineRunQueryFilterOperator
const (
Equals PipelineRunQueryFilterOperator = original.Equals
In PipelineRunQueryFilterOperator = original.In
NotEquals PipelineRunQueryFilterOperator = original.NotEquals
NotIn PipelineRunQueryFilterOperator = original.NotIn
)
type PipelineRunQueryOrder = original.PipelineRunQueryOrder
const (
ASC PipelineRunQueryOrder = original.ASC
DESC PipelineRunQueryOrder = original.DESC
)
type PipelineRunQueryOrderByField = original.PipelineRunQueryOrderByField
const (
PipelineRunQueryOrderByFieldRunEnd PipelineRunQueryOrderByField = original.PipelineRunQueryOrderByFieldRunEnd
PipelineRunQueryOrderByFieldRunStart PipelineRunQueryOrderByField = original.PipelineRunQueryOrderByFieldRunStart
)
type PolybaseSettingsRejectType = original.PolybaseSettingsRejectType type PolybaseSettingsRejectType = original.PolybaseSettingsRejectType
const ( const (
@ -379,6 +346,51 @@ const (
Year RecurrenceFrequency = original.Year Year RecurrenceFrequency = original.Year
) )
type RunQueryFilterOperand = original.RunQueryFilterOperand
const (
ActivityName RunQueryFilterOperand = original.ActivityName
ActivityRunEnd RunQueryFilterOperand = original.ActivityRunEnd
ActivityRunStart RunQueryFilterOperand = original.ActivityRunStart
ActivityType RunQueryFilterOperand = original.ActivityType
PipelineName RunQueryFilterOperand = original.PipelineName
RunEnd RunQueryFilterOperand = original.RunEnd
RunStart RunQueryFilterOperand = original.RunStart
Status RunQueryFilterOperand = original.Status
TriggerName RunQueryFilterOperand = original.TriggerName
TriggerRunTimestamp RunQueryFilterOperand = original.TriggerRunTimestamp
)
type RunQueryFilterOperator = original.RunQueryFilterOperator
const (
Equals RunQueryFilterOperator = original.Equals
In RunQueryFilterOperator = original.In
NotEquals RunQueryFilterOperator = original.NotEquals
NotIn RunQueryFilterOperator = original.NotIn
)
type RunQueryOrder = original.RunQueryOrder
const (
ASC RunQueryOrder = original.ASC
DESC RunQueryOrder = original.DESC
)
type RunQueryOrderByField = original.RunQueryOrderByField
const (
RunQueryOrderByFieldActivityName RunQueryOrderByField = original.RunQueryOrderByFieldActivityName
RunQueryOrderByFieldActivityRunEnd RunQueryOrderByField = original.RunQueryOrderByFieldActivityRunEnd
RunQueryOrderByFieldActivityRunStart RunQueryOrderByField = original.RunQueryOrderByFieldActivityRunStart
RunQueryOrderByFieldPipelineName RunQueryOrderByField = original.RunQueryOrderByFieldPipelineName
RunQueryOrderByFieldRunEnd RunQueryOrderByField = original.RunQueryOrderByFieldRunEnd
RunQueryOrderByFieldRunStart RunQueryOrderByField = original.RunQueryOrderByFieldRunStart
RunQueryOrderByFieldStatus RunQueryOrderByField = original.RunQueryOrderByFieldStatus
RunQueryOrderByFieldTriggerName RunQueryOrderByField = original.RunQueryOrderByFieldTriggerName
RunQueryOrderByFieldTriggerRunTimestamp RunQueryOrderByField = original.RunQueryOrderByFieldTriggerRunTimestamp
)
type SalesforceSinkWriteBehavior = original.SalesforceSinkWriteBehavior type SalesforceSinkWriteBehavior = original.SalesforceSinkWriteBehavior
const ( const (
@ -714,6 +726,14 @@ const (
TypeTextFormat TypeBasicDatasetStorageFormat = original.TypeTextFormat TypeTextFormat TypeBasicDatasetStorageFormat = original.TypeTextFormat
) )
type TypeBasicFactoryRepoConfiguration = original.TypeBasicFactoryRepoConfiguration
const (
TypeFactoryGithubConfiguration TypeBasicFactoryRepoConfiguration = original.TypeFactoryGithubConfiguration
TypeFactoryRepoConfiguration TypeBasicFactoryRepoConfiguration = original.TypeFactoryRepoConfiguration
TypeFactoryVSTSConfiguration TypeBasicFactoryRepoConfiguration = original.TypeFactoryVSTSConfiguration
)
type TypeBasicIntegrationRuntime = original.TypeBasicIntegrationRuntime type TypeBasicIntegrationRuntime = original.TypeBasicIntegrationRuntime
const ( const (
@ -809,6 +829,7 @@ const (
type TypeBasicTrigger = original.TypeBasicTrigger type TypeBasicTrigger = original.TypeBasicTrigger
const ( const (
TypeBlobEventsTrigger TypeBasicTrigger = original.TypeBlobEventsTrigger
TypeBlobTrigger TypeBasicTrigger = original.TypeBlobTrigger TypeBlobTrigger TypeBasicTrigger = original.TypeBlobTrigger
TypeMultiplePipelineTrigger TypeBasicTrigger = original.TypeMultiplePipelineTrigger TypeMultiplePipelineTrigger TypeBasicTrigger = original.TypeMultiplePipelineTrigger
TypeScheduleTrigger TypeBasicTrigger = original.TypeScheduleTrigger TypeScheduleTrigger TypeBasicTrigger = original.TypeScheduleTrigger
@ -830,9 +851,7 @@ type Activity = original.Activity
type ActivityDependency = original.ActivityDependency type ActivityDependency = original.ActivityDependency
type ActivityPolicy = original.ActivityPolicy type ActivityPolicy = original.ActivityPolicy
type ActivityRun = original.ActivityRun type ActivityRun = original.ActivityRun
type ActivityRunsListResponse = original.ActivityRunsListResponse type ActivityRunsQueryResponse = original.ActivityRunsQueryResponse
type ActivityRunsListResponseIterator = original.ActivityRunsListResponseIterator
type ActivityRunsListResponsePage = original.ActivityRunsListResponsePage
type AmazonMWSLinkedService = original.AmazonMWSLinkedService type AmazonMWSLinkedService = original.AmazonMWSLinkedService
type AmazonMWSLinkedServiceTypeProperties = original.AmazonMWSLinkedServiceTypeProperties type AmazonMWSLinkedServiceTypeProperties = original.AmazonMWSLinkedServiceTypeProperties
type AmazonMWSObjectDataset = original.AmazonMWSObjectDataset type AmazonMWSObjectDataset = original.AmazonMWSObjectDataset
@ -898,6 +917,8 @@ type AzureTableDataset = original.AzureTableDataset
type AzureTableDatasetTypeProperties = original.AzureTableDatasetTypeProperties type AzureTableDatasetTypeProperties = original.AzureTableDatasetTypeProperties
type AzureTableSink = original.AzureTableSink type AzureTableSink = original.AzureTableSink
type AzureTableSource = original.AzureTableSource type AzureTableSource = original.AzureTableSource
type BlobEventsTrigger = original.BlobEventsTrigger
type BlobEventsTriggerTypeProperties = original.BlobEventsTriggerTypeProperties
type BlobSink = original.BlobSink type BlobSink = original.BlobSink
type BlobSource = original.BlobSource type BlobSource = original.BlobSource
type BlobTrigger = original.BlobTrigger type BlobTrigger = original.BlobTrigger
@ -907,6 +928,8 @@ type CassandraLinkedServiceTypeProperties = original.CassandraLinkedServiceTypeP
type CassandraSource = original.CassandraSource type CassandraSource = original.CassandraSource
type CassandraTableDataset = original.CassandraTableDataset type CassandraTableDataset = original.CassandraTableDataset
type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties
type CloudError = original.CloudError
type CloudErrorBody = original.CloudErrorBody
type ConcurLinkedService = original.ConcurLinkedService type ConcurLinkedService = original.ConcurLinkedService
type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties
type ConcurObjectDataset = original.ConcurObjectDataset type ConcurObjectDataset = original.ConcurObjectDataset
@ -973,7 +996,6 @@ type EloquaLinkedService = original.EloquaLinkedService
type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypeProperties type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypeProperties
type EloquaObjectDataset = original.EloquaObjectDataset type EloquaObjectDataset = original.EloquaObjectDataset
type EloquaSource = original.EloquaSource type EloquaSource = original.EloquaSource
type ErrorResponse = original.ErrorResponse
type ExecutePipelineActivity = original.ExecutePipelineActivity type ExecutePipelineActivity = original.ExecutePipelineActivity
type ExecutePipelineActivityTypeProperties = original.ExecutePipelineActivityTypeProperties type ExecutePipelineActivityTypeProperties = original.ExecutePipelineActivityTypeProperties
type ExecuteSSISPackageActivity = original.ExecuteSSISPackageActivity type ExecuteSSISPackageActivity = original.ExecuteSSISPackageActivity
@ -982,11 +1004,14 @@ type BasicExecutionActivity = original.BasicExecutionActivity
type ExecutionActivity = original.ExecutionActivity type ExecutionActivity = original.ExecutionActivity
type Expression = original.Expression type Expression = original.Expression
type Factory = original.Factory type Factory = original.Factory
type FactoryGitHubConfiguration = original.FactoryGitHubConfiguration
type FactoryIdentity = original.FactoryIdentity type FactoryIdentity = original.FactoryIdentity
type FactoryListResponse = original.FactoryListResponse type FactoryListResponse = original.FactoryListResponse
type FactoryListResponseIterator = original.FactoryListResponseIterator type FactoryListResponseIterator = original.FactoryListResponseIterator
type FactoryListResponsePage = original.FactoryListResponsePage type FactoryListResponsePage = original.FactoryListResponsePage
type FactoryProperties = original.FactoryProperties type FactoryProperties = original.FactoryProperties
type BasicFactoryRepoConfiguration = original.BasicFactoryRepoConfiguration
type FactoryRepoConfiguration = original.FactoryRepoConfiguration
type FactoryRepoUpdate = original.FactoryRepoUpdate type FactoryRepoUpdate = original.FactoryRepoUpdate
type FactoryUpdateParameters = original.FactoryUpdateParameters type FactoryUpdateParameters = original.FactoryUpdateParameters
type FactoryVSTSConfiguration = original.FactoryVSTSConfiguration type FactoryVSTSConfiguration = original.FactoryVSTSConfiguration
@ -1066,7 +1091,6 @@ type IntegrationRuntimeNodeIPAddress = original.IntegrationRuntimeNodeIPAddress
type IntegrationRuntimeNodeMonitoringData = original.IntegrationRuntimeNodeMonitoringData type IntegrationRuntimeNodeMonitoringData = original.IntegrationRuntimeNodeMonitoringData
type IntegrationRuntimeReference = original.IntegrationRuntimeReference type IntegrationRuntimeReference = original.IntegrationRuntimeReference
type IntegrationRuntimeRegenerateKeyParameters = original.IntegrationRuntimeRegenerateKeyParameters type IntegrationRuntimeRegenerateKeyParameters = original.IntegrationRuntimeRegenerateKeyParameters
type IntegrationRuntimeRemoveNodeRequest = original.IntegrationRuntimeRemoveNodeRequest
type IntegrationRuntimeResource = original.IntegrationRuntimeResource type IntegrationRuntimeResource = original.IntegrationRuntimeResource
type IntegrationRuntimeSsisCatalogInfo = original.IntegrationRuntimeSsisCatalogInfo type IntegrationRuntimeSsisCatalogInfo = original.IntegrationRuntimeSsisCatalogInfo
type IntegrationRuntimeSsisProperties = original.IntegrationRuntimeSsisProperties type IntegrationRuntimeSsisProperties = original.IntegrationRuntimeSsisProperties
@ -1082,12 +1106,6 @@ type JiraLinkedServiceTypeProperties = original.JiraLinkedServiceTypeProperties
type JiraObjectDataset = original.JiraObjectDataset type JiraObjectDataset = original.JiraObjectDataset
type JiraSource = original.JiraSource type JiraSource = original.JiraSource
type JSONFormat = original.JSONFormat type JSONFormat = original.JSONFormat
type LinkedIntegrationRuntime = original.LinkedIntegrationRuntime
type LinkedIntegrationRuntimeKey = original.LinkedIntegrationRuntimeKey
type BasicLinkedIntegrationRuntimeProperties = original.BasicLinkedIntegrationRuntimeProperties
type LinkedIntegrationRuntimeProperties = original.LinkedIntegrationRuntimeProperties
type LinkedIntegrationRuntimeRbac = original.LinkedIntegrationRuntimeRbac
type LinkedIntegrationRuntimeTypeProperties = original.LinkedIntegrationRuntimeTypeProperties
type BasicLinkedService = original.BasicLinkedService type BasicLinkedService = original.BasicLinkedService
type LinkedService = original.LinkedService type LinkedService = original.LinkedService
type LinkedServiceListResponse = original.LinkedServiceListResponse type LinkedServiceListResponse = original.LinkedServiceListResponse
@ -1139,8 +1157,11 @@ type OdbcSink = original.OdbcSink
type Operation = original.Operation type Operation = original.Operation
type OperationDisplay = original.OperationDisplay type OperationDisplay = original.OperationDisplay
type OperationListResponse = original.OperationListResponse type OperationListResponse = original.OperationListResponse
type OperationListResponseIterator = original.OperationListResponseIterator
type OperationListResponsePage = original.OperationListResponsePage
type OperationLogSpecification = original.OperationLogSpecification type OperationLogSpecification = original.OperationLogSpecification
type OperationMetricAvailability = original.OperationMetricAvailability type OperationMetricAvailability = original.OperationMetricAvailability
type OperationMetricDimension = original.OperationMetricDimension
type OperationMetricSpecification = original.OperationMetricSpecification type OperationMetricSpecification = original.OperationMetricSpecification
type OperationProperties = original.OperationProperties type OperationProperties = original.OperationProperties
type OperationServiceSpecification = original.OperationServiceSpecification type OperationServiceSpecification = original.OperationServiceSpecification
@ -1168,11 +1189,8 @@ type PipelineListResponsePage = original.PipelineListResponsePage
type PipelineReference = original.PipelineReference type PipelineReference = original.PipelineReference
type PipelineResource = original.PipelineResource type PipelineResource = original.PipelineResource
type PipelineRun = original.PipelineRun type PipelineRun = original.PipelineRun
type PipelineRunFilterParameters = original.PipelineRunFilterParameters
type PipelineRunInvokedBy = original.PipelineRunInvokedBy type PipelineRunInvokedBy = original.PipelineRunInvokedBy
type PipelineRunQueryFilter = original.PipelineRunQueryFilter type PipelineRunsQueryResponse = original.PipelineRunsQueryResponse
type PipelineRunQueryOrderBy = original.PipelineRunQueryOrderBy
type PipelineRunQueryResponse = original.PipelineRunQueryResponse
type PolybaseSettings = original.PolybaseSettings type PolybaseSettings = original.PolybaseSettings
type PostgreSQLLinkedService = original.PostgreSQLLinkedService type PostgreSQLLinkedService = original.PostgreSQLLinkedService
type PostgreSQLLinkedServiceTypeProperties = original.PostgreSQLLinkedServiceTypeProperties type PostgreSQLLinkedServiceTypeProperties = original.PostgreSQLLinkedServiceTypeProperties
@ -1197,6 +1215,9 @@ type ResponsysLinkedServiceTypeProperties = original.ResponsysLinkedServiceTypeP
type ResponsysObjectDataset = original.ResponsysObjectDataset type ResponsysObjectDataset = original.ResponsysObjectDataset
type ResponsysSource = original.ResponsysSource type ResponsysSource = original.ResponsysSource
type RetryPolicy = original.RetryPolicy type RetryPolicy = original.RetryPolicy
type RunFilterParameters = original.RunFilterParameters
type RunQueryFilter = original.RunQueryFilter
type RunQueryOrderBy = original.RunQueryOrderBy
type SalesforceLinkedService = original.SalesforceLinkedService type SalesforceLinkedService = original.SalesforceLinkedService
type SalesforceLinkedServiceTypeProperties = original.SalesforceLinkedServiceTypeProperties type SalesforceLinkedServiceTypeProperties = original.SalesforceLinkedServiceTypeProperties
type SalesforceMarketingCloudLinkedService = original.SalesforceMarketingCloudLinkedService type SalesforceMarketingCloudLinkedService = original.SalesforceMarketingCloudLinkedService
@ -1280,9 +1301,7 @@ type TriggerListResponsePage = original.TriggerListResponsePage
type TriggerPipelineReference = original.TriggerPipelineReference type TriggerPipelineReference = original.TriggerPipelineReference
type TriggerResource = original.TriggerResource type TriggerResource = original.TriggerResource
type TriggerRun = original.TriggerRun type TriggerRun = original.TriggerRun
type TriggerRunListResponse = original.TriggerRunListResponse type TriggerRunsQueryResponse = original.TriggerRunsQueryResponse
type TriggerRunListResponseIterator = original.TriggerRunListResponseIterator
type TriggerRunListResponsePage = original.TriggerRunListResponsePage
type TriggersStartFuture = original.TriggersStartFuture type TriggersStartFuture = original.TriggersStartFuture
type TriggersStopFuture = original.TriggersStopFuture type TriggersStopFuture = original.TriggersStopFuture
type TumblingWindowTrigger = original.TumblingWindowTrigger type TumblingWindowTrigger = original.TumblingWindowTrigger
@ -1320,6 +1339,7 @@ type ZohoSource = original.ZohoSource
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type PipelineRunsClient = original.PipelineRunsClient type PipelineRunsClient = original.PipelineRunsClient
type PipelinesClient = original.PipelinesClient type PipelinesClient = original.PipelinesClient
type TriggerRunsClient = original.TriggerRunsClient
type TriggersClient = original.TriggersClient type TriggersClient = original.TriggersClient
func NewActivityRunsClient(subscriptionID string) ActivityRunsClient { func NewActivityRunsClient(subscriptionID string) ActivityRunsClient {
@ -1367,12 +1387,12 @@ func NewLinkedServicesClientWithBaseURI(baseURI string, subscriptionID string) L
func PossibleAuthenticationTypeValues() []AuthenticationType { func PossibleAuthenticationTypeValues() []AuthenticationType {
return original.PossibleAuthenticationTypeValues() return original.PossibleAuthenticationTypeValues()
} }
func PossibleAuthorizationTypeValues() []AuthorizationType {
return original.PossibleAuthorizationTypeValues()
}
func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBehaviorType { func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBehaviorType {
return original.PossibleAzureSearchIndexWriteBehaviorTypeValues() return original.PossibleAzureSearchIndexWriteBehaviorTypeValues()
} }
func PossibleBlobEventTypesValues() []BlobEventTypes {
return original.PossibleBlobEventTypesValues()
}
func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels { func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels {
return original.PossibleCassandraSourceReadConsistencyLevelsValues() return original.PossibleCassandraSourceReadConsistencyLevelsValues()
} }
@ -1466,18 +1486,6 @@ func PossibleParameterTypeValues() []ParameterType {
func PossiblePhoenixAuthenticationTypeValues() []PhoenixAuthenticationType { func PossiblePhoenixAuthenticationTypeValues() []PhoenixAuthenticationType {
return original.PossiblePhoenixAuthenticationTypeValues() return original.PossiblePhoenixAuthenticationTypeValues()
} }
func PossiblePipelineRunQueryFilterOperandValues() []PipelineRunQueryFilterOperand {
return original.PossiblePipelineRunQueryFilterOperandValues()
}
func PossiblePipelineRunQueryFilterOperatorValues() []PipelineRunQueryFilterOperator {
return original.PossiblePipelineRunQueryFilterOperatorValues()
}
func PossiblePipelineRunQueryOrderValues() []PipelineRunQueryOrder {
return original.PossiblePipelineRunQueryOrderValues()
}
func PossiblePipelineRunQueryOrderByFieldValues() []PipelineRunQueryOrderByField {
return original.PossiblePipelineRunQueryOrderByFieldValues()
}
func PossiblePolybaseSettingsRejectTypeValues() []PolybaseSettingsRejectType { func PossiblePolybaseSettingsRejectTypeValues() []PolybaseSettingsRejectType {
return original.PossiblePolybaseSettingsRejectTypeValues() return original.PossiblePolybaseSettingsRejectTypeValues()
} }
@ -1487,6 +1495,18 @@ func PossiblePrestoAuthenticationTypeValues() []PrestoAuthenticationType {
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency { func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
return original.PossibleRecurrenceFrequencyValues() return original.PossibleRecurrenceFrequencyValues()
} }
func PossibleRunQueryFilterOperandValues() []RunQueryFilterOperand {
return original.PossibleRunQueryFilterOperandValues()
}
func PossibleRunQueryFilterOperatorValues() []RunQueryFilterOperator {
return original.PossibleRunQueryFilterOperatorValues()
}
func PossibleRunQueryOrderValues() []RunQueryOrder {
return original.PossibleRunQueryOrderValues()
}
func PossibleRunQueryOrderByFieldValues() []RunQueryOrderByField {
return original.PossibleRunQueryOrderByFieldValues()
}
func PossibleSalesforceSinkWriteBehaviorValues() []SalesforceSinkWriteBehavior { func PossibleSalesforceSinkWriteBehaviorValues() []SalesforceSinkWriteBehavior {
return original.PossibleSalesforceSinkWriteBehaviorValues() return original.PossibleSalesforceSinkWriteBehaviorValues()
} }
@ -1562,6 +1582,9 @@ func PossibleTypeBasicDatasetCompressionValues() []TypeBasicDatasetCompression {
func PossibleTypeBasicDatasetStorageFormatValues() []TypeBasicDatasetStorageFormat { func PossibleTypeBasicDatasetStorageFormatValues() []TypeBasicDatasetStorageFormat {
return original.PossibleTypeBasicDatasetStorageFormatValues() return original.PossibleTypeBasicDatasetStorageFormatValues()
} }
func PossibleTypeBasicFactoryRepoConfigurationValues() []TypeBasicFactoryRepoConfiguration {
return original.PossibleTypeBasicFactoryRepoConfigurationValues()
}
func PossibleTypeBasicIntegrationRuntimeValues() []TypeBasicIntegrationRuntime { func PossibleTypeBasicIntegrationRuntimeValues() []TypeBasicIntegrationRuntime {
return original.PossibleTypeBasicIntegrationRuntimeValues() return original.PossibleTypeBasicIntegrationRuntimeValues()
} }
@ -1595,6 +1618,12 @@ func NewPipelinesClient(subscriptionID string) PipelinesClient {
func NewPipelinesClientWithBaseURI(baseURI string, subscriptionID string) PipelinesClient { func NewPipelinesClientWithBaseURI(baseURI string, subscriptionID string) PipelinesClient {
return original.NewPipelinesClientWithBaseURI(baseURI, subscriptionID) return original.NewPipelinesClientWithBaseURI(baseURI, subscriptionID)
} }
func NewTriggerRunsClient(subscriptionID string) TriggerRunsClient {
return original.NewTriggerRunsClient(subscriptionID)
}
func NewTriggerRunsClientWithBaseURI(baseURI string, subscriptionID string) TriggerRunsClient {
return original.NewTriggerRunsClientWithBaseURI(baseURI, subscriptionID)
}
func NewTriggersClient(subscriptionID string) TriggersClient { func NewTriggersClient(subscriptionID string) TriggersClient {
return original.NewTriggersClient(subscriptionID) return original.NewTriggersClient(subscriptionID)
} }

View file

@ -19,7 +19,7 @@
package keyvault package keyvault
import original "github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2016-10-01/keyvault" import original "github.com/Azure/azure-sdk-for-go/services/keyvault/mgmt/2018-02-14/keyvault"
const ( const (
DefaultBaseURI = original.DefaultBaseURI DefaultBaseURI = original.DefaultBaseURI
@ -37,6 +37,7 @@ const (
type CertificatePermissions = original.CertificatePermissions type CertificatePermissions = original.CertificatePermissions
const ( const (
Backup CertificatePermissions = original.Backup
Create CertificatePermissions = original.Create Create CertificatePermissions = original.Create
Delete CertificatePermissions = original.Delete Delete CertificatePermissions = original.Delete
Deleteissuers CertificatePermissions = original.Deleteissuers Deleteissuers CertificatePermissions = original.Deleteissuers
@ -49,6 +50,7 @@ const (
Manageissuers CertificatePermissions = original.Manageissuers Manageissuers CertificatePermissions = original.Manageissuers
Purge CertificatePermissions = original.Purge Purge CertificatePermissions = original.Purge
Recover CertificatePermissions = original.Recover Recover CertificatePermissions = original.Recover
Restore CertificatePermissions = original.Restore
Setissuers CertificatePermissions = original.Setissuers Setissuers CertificatePermissions = original.Setissuers
Update CertificatePermissions = original.Update Update CertificatePermissions = original.Update
) )
@ -81,6 +83,20 @@ const (
KeyPermissionsWrapKey KeyPermissions = original.KeyPermissionsWrapKey KeyPermissionsWrapKey KeyPermissions = original.KeyPermissionsWrapKey
) )
type NetworkRuleAction = original.NetworkRuleAction
const (
Allow NetworkRuleAction = original.Allow
Deny NetworkRuleAction = original.Deny
)
type NetworkRuleBypassOptions = original.NetworkRuleBypassOptions
const (
AzureServices NetworkRuleBypassOptions = original.AzureServices
None NetworkRuleBypassOptions = original.None
)
type Reason = original.Reason type Reason = original.Reason
const ( const (
@ -134,7 +150,9 @@ type DeletedVaultListResult = original.DeletedVaultListResult
type DeletedVaultListResultIterator = original.DeletedVaultListResultIterator type DeletedVaultListResultIterator = original.DeletedVaultListResultIterator
type DeletedVaultListResultPage = original.DeletedVaultListResultPage type DeletedVaultListResultPage = original.DeletedVaultListResultPage
type DeletedVaultProperties = original.DeletedVaultProperties type DeletedVaultProperties = original.DeletedVaultProperties
type IPRule = original.IPRule
type LogSpecification = original.LogSpecification type LogSpecification = original.LogSpecification
type NetworkRuleSet = original.NetworkRuleSet
type Operation = original.Operation type Operation = original.Operation
type OperationDisplay = original.OperationDisplay type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult type OperationListResult = original.OperationListResult
@ -159,7 +177,9 @@ type VaultListResultPage = original.VaultListResultPage
type VaultPatchParameters = original.VaultPatchParameters type VaultPatchParameters = original.VaultPatchParameters
type VaultPatchProperties = original.VaultPatchProperties type VaultPatchProperties = original.VaultPatchProperties
type VaultProperties = original.VaultProperties type VaultProperties = original.VaultProperties
type VaultsCreateOrUpdateFuture = original.VaultsCreateOrUpdateFuture
type VaultsPurgeDeletedFuture = original.VaultsPurgeDeletedFuture type VaultsPurgeDeletedFuture = original.VaultsPurgeDeletedFuture
type VirtualNetworkRule = original.VirtualNetworkRule
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type VaultsClient = original.VaultsClient type VaultsClient = original.VaultsClient
@ -181,6 +201,12 @@ func PossibleCreateModeValues() []CreateMode {
func PossibleKeyPermissionsValues() []KeyPermissions { func PossibleKeyPermissionsValues() []KeyPermissions {
return original.PossibleKeyPermissionsValues() return original.PossibleKeyPermissionsValues()
} }
func PossibleNetworkRuleActionValues() []NetworkRuleAction {
return original.PossibleNetworkRuleActionValues()
}
func PossibleNetworkRuleBypassOptionsValues() []NetworkRuleBypassOptions {
return original.PossibleNetworkRuleBypassOptionsValues()
}
func PossibleReasonValues() []Reason { func PossibleReasonValues() []Reason {
return original.PossibleReasonValues() return original.PossibleReasonValues()
} }

View file

@ -522,8 +522,9 @@ const (
type ProbeProtocol = original.ProbeProtocol type ProbeProtocol = original.ProbeProtocol
const ( const (
ProbeProtocolHTTP ProbeProtocol = original.ProbeProtocolHTTP ProbeProtocolHTTP ProbeProtocol = original.ProbeProtocolHTTP
ProbeProtocolTCP ProbeProtocol = original.ProbeProtocolTCP ProbeProtocolHTTPS ProbeProtocol = original.ProbeProtocolHTTPS
ProbeProtocolTCP ProbeProtocol = original.ProbeProtocolTCP
) )
type ProcessorArchitecture = original.ProcessorArchitecture type ProcessorArchitecture = original.ProcessorArchitecture

View file

@ -58,6 +58,8 @@ type BaiduCredentialProperties = original.BaiduCredentialProperties
type CheckAvailabilityParameters = original.CheckAvailabilityParameters type CheckAvailabilityParameters = original.CheckAvailabilityParameters
type CheckAvailabilityResult = original.CheckAvailabilityResult type CheckAvailabilityResult = original.CheckAvailabilityResult
type CreateOrUpdateParameters = original.CreateOrUpdateParameters type CreateOrUpdateParameters = original.CreateOrUpdateParameters
type DebugSendResponse = original.DebugSendResponse
type DebugSendResult = original.DebugSendResult
type ErrorResponse = original.ErrorResponse type ErrorResponse = original.ErrorResponse
type GcmCredential = original.GcmCredential type GcmCredential = original.GcmCredential
type GcmCredentialProperties = original.GcmCredentialProperties type GcmCredentialProperties = original.GcmCredentialProperties
@ -79,6 +81,7 @@ type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage type OperationListResultPage = original.OperationListResultPage
type PatchParameters = original.PatchParameters
type PnsCredentialsProperties = original.PnsCredentialsProperties type PnsCredentialsProperties = original.PnsCredentialsProperties
type PnsCredentialsResource = original.PnsCredentialsResource type PnsCredentialsResource = original.PnsCredentialsResource
type PolicykeyResource = original.PolicykeyResource type PolicykeyResource = original.PolicykeyResource

View file

@ -19,11 +19,10 @@
package apimanagement package apimanagement
import original "github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2018-01-01/apimanagement" import original "github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement"
type APIClient = original.APIClient type APIClient = original.APIClient
type APIDiagnosticClient = original.APIDiagnosticClient type APIDiagnosticClient = original.APIDiagnosticClient
type APIDiagnosticLoggerClient = original.APIDiagnosticLoggerClient
type APIExportClient = original.APIExportClient type APIExportClient = original.APIExportClient
type APIIssueClient = original.APIIssueClient type APIIssueClient = original.APIIssueClient
type APIIssueAttachmentClient = original.APIIssueAttachmentClient type APIIssueAttachmentClient = original.APIIssueAttachmentClient
@ -47,12 +46,17 @@ const (
type BaseClient = original.BaseClient type BaseClient = original.BaseClient
type DelegationSettingsClient = original.DelegationSettingsClient type DelegationSettingsClient = original.DelegationSettingsClient
type DiagnosticClient = original.DiagnosticClient type DiagnosticClient = original.DiagnosticClient
type DiagnosticLoggerClient = original.DiagnosticLoggerClient
type EmailTemplateClient = original.EmailTemplateClient type EmailTemplateClient = original.EmailTemplateClient
type GroupClient = original.GroupClient type GroupClient = original.GroupClient
type GroupUserClient = original.GroupUserClient type GroupUserClient = original.GroupUserClient
type IdentityProviderClient = original.IdentityProviderClient type IdentityProviderClient = original.IdentityProviderClient
type LoggerClient = original.LoggerClient type LoggerClient = original.LoggerClient
type AlwaysLog = original.AlwaysLog
const (
AllErrors AlwaysLog = original.AllErrors
)
type APIType = original.APIType type APIType = original.APIType
const ( const (
@ -241,6 +245,12 @@ const (
ProtocolHTTPS Protocol = original.ProtocolHTTPS ProtocolHTTPS Protocol = original.ProtocolHTTPS
) )
type SamplingType = original.SamplingType
const (
Fixed SamplingType = original.Fixed
)
type SkuType = original.SkuType type SkuType = original.SkuType
const ( const (
@ -398,6 +408,7 @@ type BackendServiceFabricClusterProperties = original.BackendServiceFabricCluste
type BackendTLSProperties = original.BackendTLSProperties type BackendTLSProperties = original.BackendTLSProperties
type BackendUpdateParameterProperties = original.BackendUpdateParameterProperties type BackendUpdateParameterProperties = original.BackendUpdateParameterProperties
type BackendUpdateParameters = original.BackendUpdateParameters type BackendUpdateParameters = original.BackendUpdateParameters
type BodyDiagnosticSettings = original.BodyDiagnosticSettings
type CertificateCollection = original.CertificateCollection type CertificateCollection = original.CertificateCollection
type CertificateCollectionIterator = original.CertificateCollectionIterator type CertificateCollectionIterator = original.CertificateCollectionIterator
type CertificateCollectionPage = original.CertificateCollectionPage type CertificateCollectionPage = original.CertificateCollectionPage
@ -437,6 +448,7 @@ type GroupUpdateParameters = original.GroupUpdateParameters
type GroupUpdateParametersProperties = original.GroupUpdateParametersProperties type GroupUpdateParametersProperties = original.GroupUpdateParametersProperties
type HostnameConfiguration = original.HostnameConfiguration type HostnameConfiguration = original.HostnameConfiguration
type HostnameConfigurationOld = original.HostnameConfigurationOld type HostnameConfigurationOld = original.HostnameConfigurationOld
type HTTPMessageDiagnostic = original.HTTPMessageDiagnostic
type IdentityProviderBaseParameters = original.IdentityProviderBaseParameters type IdentityProviderBaseParameters = original.IdentityProviderBaseParameters
type IdentityProviderContract = original.IdentityProviderContract type IdentityProviderContract = original.IdentityProviderContract
type IdentityProviderContractProperties = original.IdentityProviderContractProperties type IdentityProviderContractProperties = original.IdentityProviderContractProperties
@ -500,6 +512,7 @@ type OperationTagResourceContractProperties = original.OperationTagResourceContr
type OperationUpdateContract = original.OperationUpdateContract type OperationUpdateContract = original.OperationUpdateContract
type OperationUpdateContractProperties = original.OperationUpdateContractProperties type OperationUpdateContractProperties = original.OperationUpdateContractProperties
type ParameterContract = original.ParameterContract type ParameterContract = original.ParameterContract
type PipelineDiagnosticSettings = original.PipelineDiagnosticSettings
type PolicyCollection = original.PolicyCollection type PolicyCollection = original.PolicyCollection
type PolicyContract = original.PolicyContract type PolicyContract = original.PolicyContract
type PolicyContractProperties = original.PolicyContractProperties type PolicyContractProperties = original.PolicyContractProperties
@ -554,6 +567,7 @@ type RequestReportCollection = original.RequestReportCollection
type RequestReportRecordContract = original.RequestReportRecordContract type RequestReportRecordContract = original.RequestReportRecordContract
type Resource = original.Resource type Resource = original.Resource
type ResponseContract = original.ResponseContract type ResponseContract = original.ResponseContract
type SamplingSettings = original.SamplingSettings
type SaveConfigurationParameter = original.SaveConfigurationParameter type SaveConfigurationParameter = original.SaveConfigurationParameter
type SchemaCollection = original.SchemaCollection type SchemaCollection = original.SchemaCollection
type SchemaCollectionIterator = original.SchemaCollectionIterator type SchemaCollectionIterator = original.SchemaCollectionIterator
@ -683,12 +697,6 @@ func NewAPIDiagnosticClient(subscriptionID string) APIDiagnosticClient {
func NewAPIDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticClient { func NewAPIDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticClient {
return original.NewAPIDiagnosticClientWithBaseURI(baseURI, subscriptionID) return original.NewAPIDiagnosticClientWithBaseURI(baseURI, subscriptionID)
} }
func NewAPIDiagnosticLoggerClient(subscriptionID string) APIDiagnosticLoggerClient {
return original.NewAPIDiagnosticLoggerClient(subscriptionID)
}
func NewAPIDiagnosticLoggerClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticLoggerClient {
return original.NewAPIDiagnosticLoggerClientWithBaseURI(baseURI, subscriptionID)
}
func NewAPIExportClient(subscriptionID string) APIExportClient { func NewAPIExportClient(subscriptionID string) APIExportClient {
return original.NewAPIExportClient(subscriptionID) return original.NewAPIExportClient(subscriptionID)
} }
@ -797,12 +805,6 @@ func NewDiagnosticClient(subscriptionID string) DiagnosticClient {
func NewDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticClient { func NewDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticClient {
return original.NewDiagnosticClientWithBaseURI(baseURI, subscriptionID) return original.NewDiagnosticClientWithBaseURI(baseURI, subscriptionID)
} }
func NewDiagnosticLoggerClient(subscriptionID string) DiagnosticLoggerClient {
return original.NewDiagnosticLoggerClient(subscriptionID)
}
func NewDiagnosticLoggerClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticLoggerClient {
return original.NewDiagnosticLoggerClientWithBaseURI(baseURI, subscriptionID)
}
func NewEmailTemplateClient(subscriptionID string) EmailTemplateClient { func NewEmailTemplateClient(subscriptionID string) EmailTemplateClient {
return original.NewEmailTemplateClient(subscriptionID) return original.NewEmailTemplateClient(subscriptionID)
} }
@ -833,6 +835,9 @@ func NewLoggerClient(subscriptionID string) LoggerClient {
func NewLoggerClientWithBaseURI(baseURI string, subscriptionID string) LoggerClient { func NewLoggerClientWithBaseURI(baseURI string, subscriptionID string) LoggerClient {
return original.NewLoggerClientWithBaseURI(baseURI, subscriptionID) return original.NewLoggerClientWithBaseURI(baseURI, subscriptionID)
} }
func PossibleAlwaysLogValues() []AlwaysLog {
return original.PossibleAlwaysLogValues()
}
func PossibleAPITypeValues() []APIType { func PossibleAPITypeValues() []APIType {
return original.PossibleAPITypeValues() return original.PossibleAPITypeValues()
} }
@ -899,6 +904,9 @@ func PossibleProductStateValues() []ProductState {
func PossibleProtocolValues() []Protocol { func PossibleProtocolValues() []Protocol {
return original.PossibleProtocolValues() return original.PossibleProtocolValues()
} }
func PossibleSamplingTypeValues() []SamplingType {
return original.PossibleSamplingTypeValues()
}
func PossibleSkuTypeValues() []SkuType { func PossibleSkuTypeValues() []SkuType {
return original.PossibleSkuTypeValues() return original.PossibleSkuTypeValues()
} }

View file

@ -0,0 +1,915 @@
// +build go1.9
// Copyright 2018 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package automation
import original "github.com/Azure/azure-sdk-for-go/services/preview/automation/mgmt/2017-05-15-preview/automation"
type AccountClient = original.AccountClient
type ActivityClient = original.ActivityClient
type AgentRegistrationInformationClient = original.AgentRegistrationInformationClient
type CertificateClient = original.CertificateClient
const (
DefaultBaseURI = original.DefaultBaseURI
)
type BaseClient = original.BaseClient
type ConnectionClient = original.ConnectionClient
type ConnectionTypeClient = original.ConnectionTypeClient
type CredentialClient = original.CredentialClient
type DscCompilationJobClient = original.DscCompilationJobClient
type DscCompilationJobStreamClient = original.DscCompilationJobStreamClient
type DscConfigurationClient = original.DscConfigurationClient
type DscNodeClient = original.DscNodeClient
type DscNodeConfigurationClient = original.DscNodeConfigurationClient
type FieldsClient = original.FieldsClient
type HybridRunbookWorkerGroupClient = original.HybridRunbookWorkerGroupClient
type JobClient = original.JobClient
type JobScheduleClient = original.JobScheduleClient
type JobStreamClient = original.JobStreamClient
type KeysClient = original.KeysClient
type LinkedWorkspaceClient = original.LinkedWorkspaceClient
type AccountState = original.AccountState
const (
Ok AccountState = original.Ok
Suspended AccountState = original.Suspended
Unavailable AccountState = original.Unavailable
)
type AgentRegistrationKeyName = original.AgentRegistrationKeyName
const (
Primary AgentRegistrationKeyName = original.Primary
Secondary AgentRegistrationKeyName = original.Secondary
)
type ContentSourceType = original.ContentSourceType
const (
EmbeddedContent ContentSourceType = original.EmbeddedContent
URI ContentSourceType = original.URI
)
type DscConfigurationProvisioningState = original.DscConfigurationProvisioningState
const (
Succeeded DscConfigurationProvisioningState = original.Succeeded
)
type DscConfigurationState = original.DscConfigurationState
const (
DscConfigurationStateEdit DscConfigurationState = original.DscConfigurationStateEdit
DscConfigurationStateNew DscConfigurationState = original.DscConfigurationStateNew
DscConfigurationStatePublished DscConfigurationState = original.DscConfigurationStatePublished
)
type GroupTypeEnum = original.GroupTypeEnum
const (
System GroupTypeEnum = original.System
User GroupTypeEnum = original.User
)
type HTTPStatusCode = original.HTTPStatusCode
const (
Accepted HTTPStatusCode = original.Accepted
Ambiguous HTTPStatusCode = original.Ambiguous
BadGateway HTTPStatusCode = original.BadGateway
BadRequest HTTPStatusCode = original.BadRequest
Conflict HTTPStatusCode = original.Conflict
Continue HTTPStatusCode = original.Continue
Created HTTPStatusCode = original.Created
ExpectationFailed HTTPStatusCode = original.ExpectationFailed
Forbidden HTTPStatusCode = original.Forbidden
Found HTTPStatusCode = original.Found
GatewayTimeout HTTPStatusCode = original.GatewayTimeout
Gone HTTPStatusCode = original.Gone
HTTPVersionNotSupported HTTPStatusCode = original.HTTPVersionNotSupported
InternalServerError HTTPStatusCode = original.InternalServerError
LengthRequired HTTPStatusCode = original.LengthRequired
MethodNotAllowed HTTPStatusCode = original.MethodNotAllowed
Moved HTTPStatusCode = original.Moved
MovedPermanently HTTPStatusCode = original.MovedPermanently
MultipleChoices HTTPStatusCode = original.MultipleChoices
NoContent HTTPStatusCode = original.NoContent
NonAuthoritativeInformation HTTPStatusCode = original.NonAuthoritativeInformation
NotAcceptable HTTPStatusCode = original.NotAcceptable
NotFound HTTPStatusCode = original.NotFound
NotImplemented HTTPStatusCode = original.NotImplemented
NotModified HTTPStatusCode = original.NotModified
OK HTTPStatusCode = original.OK
PartialContent HTTPStatusCode = original.PartialContent
PaymentRequired HTTPStatusCode = original.PaymentRequired
PreconditionFailed HTTPStatusCode = original.PreconditionFailed
ProxyAuthenticationRequired HTTPStatusCode = original.ProxyAuthenticationRequired
Redirect HTTPStatusCode = original.Redirect
RedirectKeepVerb HTTPStatusCode = original.RedirectKeepVerb
RedirectMethod HTTPStatusCode = original.RedirectMethod
RequestedRangeNotSatisfiable HTTPStatusCode = original.RequestedRangeNotSatisfiable
RequestEntityTooLarge HTTPStatusCode = original.RequestEntityTooLarge
RequestTimeout HTTPStatusCode = original.RequestTimeout
RequestURITooLong HTTPStatusCode = original.RequestURITooLong
ResetContent HTTPStatusCode = original.ResetContent
SeeOther HTTPStatusCode = original.SeeOther
ServiceUnavailable HTTPStatusCode = original.ServiceUnavailable
SwitchingProtocols HTTPStatusCode = original.SwitchingProtocols
TemporaryRedirect HTTPStatusCode = original.TemporaryRedirect
Unauthorized HTTPStatusCode = original.Unauthorized
UnsupportedMediaType HTTPStatusCode = original.UnsupportedMediaType
Unused HTTPStatusCode = original.Unused
UpgradeRequired HTTPStatusCode = original.UpgradeRequired
UseProxy HTTPStatusCode = original.UseProxy
)
type JobProvisioningState = original.JobProvisioningState
const (
JobProvisioningStateFailed JobProvisioningState = original.JobProvisioningStateFailed
JobProvisioningStateProcessing JobProvisioningState = original.JobProvisioningStateProcessing
JobProvisioningStateSucceeded JobProvisioningState = original.JobProvisioningStateSucceeded
JobProvisioningStateSuspended JobProvisioningState = original.JobProvisioningStateSuspended
)
type JobStatus = original.JobStatus
const (
JobStatusActivating JobStatus = original.JobStatusActivating
JobStatusBlocked JobStatus = original.JobStatusBlocked
JobStatusCompleted JobStatus = original.JobStatusCompleted
JobStatusDisconnected JobStatus = original.JobStatusDisconnected
JobStatusFailed JobStatus = original.JobStatusFailed
JobStatusNew JobStatus = original.JobStatusNew
JobStatusRemoving JobStatus = original.JobStatusRemoving
JobStatusResuming JobStatus = original.JobStatusResuming
JobStatusRunning JobStatus = original.JobStatusRunning
JobStatusStopped JobStatus = original.JobStatusStopped
JobStatusStopping JobStatus = original.JobStatusStopping
JobStatusSuspended JobStatus = original.JobStatusSuspended
JobStatusSuspending JobStatus = original.JobStatusSuspending
)
type JobStreamType = original.JobStreamType
const (
Any JobStreamType = original.Any
Debug JobStreamType = original.Debug
Error JobStreamType = original.Error
Output JobStreamType = original.Output
Progress JobStreamType = original.Progress
Verbose JobStreamType = original.Verbose
Warning JobStreamType = original.Warning
)
type KeyName = original.KeyName
const (
KeyNamePrimary KeyName = original.KeyNamePrimary
KeyNameSecondary KeyName = original.KeyNameSecondary
)
type KeyPermissions = original.KeyPermissions
const (
Full KeyPermissions = original.Full
Read KeyPermissions = original.Read
)
type LinuxUpdateClasses = original.LinuxUpdateClasses
const (
Critical LinuxUpdateClasses = original.Critical
Other LinuxUpdateClasses = original.Other
Security LinuxUpdateClasses = original.Security
Unclassified LinuxUpdateClasses = original.Unclassified
)
type ModuleProvisioningState = original.ModuleProvisioningState
const (
ModuleProvisioningStateActivitiesStored ModuleProvisioningState = original.ModuleProvisioningStateActivitiesStored
ModuleProvisioningStateCancelled ModuleProvisioningState = original.ModuleProvisioningStateCancelled
ModuleProvisioningStateConnectionTypeImported ModuleProvisioningState = original.ModuleProvisioningStateConnectionTypeImported
ModuleProvisioningStateContentDownloaded ModuleProvisioningState = original.ModuleProvisioningStateContentDownloaded
ModuleProvisioningStateContentRetrieved ModuleProvisioningState = original.ModuleProvisioningStateContentRetrieved
ModuleProvisioningStateContentStored ModuleProvisioningState = original.ModuleProvisioningStateContentStored
ModuleProvisioningStateContentValidated ModuleProvisioningState = original.ModuleProvisioningStateContentValidated
ModuleProvisioningStateCreated ModuleProvisioningState = original.ModuleProvisioningStateCreated
ModuleProvisioningStateCreating ModuleProvisioningState = original.ModuleProvisioningStateCreating
ModuleProvisioningStateFailed ModuleProvisioningState = original.ModuleProvisioningStateFailed
ModuleProvisioningStateModuleDataStored ModuleProvisioningState = original.ModuleProvisioningStateModuleDataStored
ModuleProvisioningStateModuleImportRunbookComplete ModuleProvisioningState = original.ModuleProvisioningStateModuleImportRunbookComplete
ModuleProvisioningStateRunningImportModuleRunbook ModuleProvisioningState = original.ModuleProvisioningStateRunningImportModuleRunbook
ModuleProvisioningStateStartingImportModuleRunbook ModuleProvisioningState = original.ModuleProvisioningStateStartingImportModuleRunbook
ModuleProvisioningStateSucceeded ModuleProvisioningState = original.ModuleProvisioningStateSucceeded
ModuleProvisioningStateUpdating ModuleProvisioningState = original.ModuleProvisioningStateUpdating
)
type OperatingSystemType = original.OperatingSystemType
const (
Linux OperatingSystemType = original.Linux
Windows OperatingSystemType = original.Windows
)
type ProvisioningState = original.ProvisioningState
const (
Completed ProvisioningState = original.Completed
Failed ProvisioningState = original.Failed
Running ProvisioningState = original.Running
)
type RunbookProvisioningState = original.RunbookProvisioningState
const (
RunbookProvisioningStateSucceeded RunbookProvisioningState = original.RunbookProvisioningStateSucceeded
)
type RunbookState = original.RunbookState
const (
RunbookStateEdit RunbookState = original.RunbookStateEdit
RunbookStateNew RunbookState = original.RunbookStateNew
RunbookStatePublished RunbookState = original.RunbookStatePublished
)
type RunbookTypeEnum = original.RunbookTypeEnum
const (
Graph RunbookTypeEnum = original.Graph
GraphPowerShell RunbookTypeEnum = original.GraphPowerShell
GraphPowerShellWorkflow RunbookTypeEnum = original.GraphPowerShellWorkflow
PowerShell RunbookTypeEnum = original.PowerShell
PowerShellWorkflow RunbookTypeEnum = original.PowerShellWorkflow
Script RunbookTypeEnum = original.Script
)
type ScheduleDay = original.ScheduleDay
const (
Friday ScheduleDay = original.Friday
Monday ScheduleDay = original.Monday
Saturday ScheduleDay = original.Saturday
Sunday ScheduleDay = original.Sunday
Thursday ScheduleDay = original.Thursday
Tuesday ScheduleDay = original.Tuesday
Wednesday ScheduleDay = original.Wednesday
)
type ScheduleFrequency = original.ScheduleFrequency
const (
Day ScheduleFrequency = original.Day
Hour ScheduleFrequency = original.Hour
Month ScheduleFrequency = original.Month
OneTime ScheduleFrequency = original.OneTime
Week ScheduleFrequency = original.Week
)
type SkuNameEnum = original.SkuNameEnum
const (
Basic SkuNameEnum = original.Basic
Free SkuNameEnum = original.Free
)
type SourceType = original.SourceType
const (
GitHub SourceType = original.GitHub
VsoGit SourceType = original.VsoGit
VsoTfvc SourceType = original.VsoTfvc
)
type StartType = original.StartType
const (
AutoSync StartType = original.AutoSync
ManualSync StartType = original.ManualSync
)
type StreamType = original.StreamType
const (
StreamTypeError StreamType = original.StreamTypeError
StreamTypeOutput StreamType = original.StreamTypeOutput
)
type WindowsUpdateClasses = original.WindowsUpdateClasses
const (
WindowsUpdateClassesCritical WindowsUpdateClasses = original.WindowsUpdateClassesCritical
WindowsUpdateClassesDefinition WindowsUpdateClasses = original.WindowsUpdateClassesDefinition
WindowsUpdateClassesFeaturePack WindowsUpdateClasses = original.WindowsUpdateClassesFeaturePack
WindowsUpdateClassesSecurity WindowsUpdateClasses = original.WindowsUpdateClassesSecurity
WindowsUpdateClassesServicePack WindowsUpdateClasses = original.WindowsUpdateClassesServicePack
WindowsUpdateClassesTools WindowsUpdateClasses = original.WindowsUpdateClassesTools
WindowsUpdateClassesUnclassified WindowsUpdateClasses = original.WindowsUpdateClassesUnclassified
WindowsUpdateClassesUpdateRollup WindowsUpdateClasses = original.WindowsUpdateClassesUpdateRollup
WindowsUpdateClassesUpdates WindowsUpdateClasses = original.WindowsUpdateClassesUpdates
)
type Account = original.Account
type AccountCreateOrUpdateParameters = original.AccountCreateOrUpdateParameters
type AccountCreateOrUpdateProperties = original.AccountCreateOrUpdateProperties
type AccountListResult = original.AccountListResult
type AccountListResultIterator = original.AccountListResultIterator
type AccountListResultPage = original.AccountListResultPage
type AccountProperties = original.AccountProperties
type AccountUpdateParameters = original.AccountUpdateParameters
type AccountUpdateProperties = original.AccountUpdateProperties
type Activity = original.Activity
type ActivityListResult = original.ActivityListResult
type ActivityListResultIterator = original.ActivityListResultIterator
type ActivityListResultPage = original.ActivityListResultPage
type ActivityOutputType = original.ActivityOutputType
type ActivityParameter = original.ActivityParameter
type ActivityParameterSet = original.ActivityParameterSet
type ActivityParameterValidationSet = original.ActivityParameterValidationSet
type ActivityProperties = original.ActivityProperties
type AdvancedSchedule = original.AdvancedSchedule
type AdvancedScheduleMonthlyOccurrence = original.AdvancedScheduleMonthlyOccurrence
type AgentRegistration = original.AgentRegistration
type AgentRegistrationKeys = original.AgentRegistrationKeys
type AgentRegistrationRegenerateKeyParameter = original.AgentRegistrationRegenerateKeyParameter
type Certificate = original.Certificate
type CertificateCreateOrUpdateParameters = original.CertificateCreateOrUpdateParameters
type CertificateCreateOrUpdateProperties = original.CertificateCreateOrUpdateProperties
type CertificateListResult = original.CertificateListResult
type CertificateListResultIterator = original.CertificateListResultIterator
type CertificateListResultPage = original.CertificateListResultPage
type CertificateProperties = original.CertificateProperties
type CertificateUpdateParameters = original.CertificateUpdateParameters
type CertificateUpdateProperties = original.CertificateUpdateProperties
type CollectionItemUpdateConfiguration = original.CollectionItemUpdateConfiguration
type Connection = original.Connection
type ConnectionCreateOrUpdateParameters = original.ConnectionCreateOrUpdateParameters
type ConnectionCreateOrUpdateProperties = original.ConnectionCreateOrUpdateProperties
type ConnectionListResult = original.ConnectionListResult
type ConnectionListResultIterator = original.ConnectionListResultIterator
type ConnectionListResultPage = original.ConnectionListResultPage
type ConnectionProperties = original.ConnectionProperties
type ConnectionType = original.ConnectionType
type ConnectionTypeAssociationProperty = original.ConnectionTypeAssociationProperty
type ConnectionTypeCreateOrUpdateParameters = original.ConnectionTypeCreateOrUpdateParameters
type ConnectionTypeCreateOrUpdateProperties = original.ConnectionTypeCreateOrUpdateProperties
type ConnectionTypeListResult = original.ConnectionTypeListResult
type ConnectionTypeListResultIterator = original.ConnectionTypeListResultIterator
type ConnectionTypeListResultPage = original.ConnectionTypeListResultPage
type ConnectionTypeProperties = original.ConnectionTypeProperties
type ConnectionUpdateParameters = original.ConnectionUpdateParameters
type ConnectionUpdateProperties = original.ConnectionUpdateProperties
type ContentHash = original.ContentHash
type ContentLink = original.ContentLink
type ContentSource = original.ContentSource
type Credential = original.Credential
type CredentialCreateOrUpdateParameters = original.CredentialCreateOrUpdateParameters
type CredentialCreateOrUpdateProperties = original.CredentialCreateOrUpdateProperties
type CredentialListResult = original.CredentialListResult
type CredentialListResultIterator = original.CredentialListResultIterator
type CredentialListResultPage = original.CredentialListResultPage
type CredentialProperties = original.CredentialProperties
type CredentialUpdateParameters = original.CredentialUpdateParameters
type CredentialUpdateProperties = original.CredentialUpdateProperties
type DscCompilationJob = original.DscCompilationJob
type DscCompilationJobCreateParameters = original.DscCompilationJobCreateParameters
type DscCompilationJobCreateProperties = original.DscCompilationJobCreateProperties
type DscCompilationJobListResult = original.DscCompilationJobListResult
type DscCompilationJobListResultIterator = original.DscCompilationJobListResultIterator
type DscCompilationJobListResultPage = original.DscCompilationJobListResultPage
type DscCompilationJobProperties = original.DscCompilationJobProperties
type DscConfiguration = original.DscConfiguration
type DscConfigurationAssociationProperty = original.DscConfigurationAssociationProperty
type DscConfigurationCreateOrUpdateParameters = original.DscConfigurationCreateOrUpdateParameters
type DscConfigurationCreateOrUpdateProperties = original.DscConfigurationCreateOrUpdateProperties
type DscConfigurationListResult = original.DscConfigurationListResult
type DscConfigurationListResultIterator = original.DscConfigurationListResultIterator
type DscConfigurationListResultPage = original.DscConfigurationListResultPage
type DscConfigurationParameter = original.DscConfigurationParameter
type DscConfigurationProperties = original.DscConfigurationProperties
type DscConfigurationUpdateParameters = original.DscConfigurationUpdateParameters
type DscMetaConfiguration = original.DscMetaConfiguration
type DscNode = original.DscNode
type DscNodeConfiguration = original.DscNodeConfiguration
type DscNodeConfigurationAssociationProperty = original.DscNodeConfigurationAssociationProperty
type DscNodeConfigurationCreateOrUpdateParameters = original.DscNodeConfigurationCreateOrUpdateParameters
type DscNodeConfigurationListResult = original.DscNodeConfigurationListResult
type DscNodeConfigurationListResultIterator = original.DscNodeConfigurationListResultIterator
type DscNodeConfigurationListResultPage = original.DscNodeConfigurationListResultPage
type DscNodeExtensionHandlerAssociationProperty = original.DscNodeExtensionHandlerAssociationProperty
type DscNodeListResult = original.DscNodeListResult
type DscNodeListResultIterator = original.DscNodeListResultIterator
type DscNodeListResultPage = original.DscNodeListResultPage
type DscNodeReport = original.DscNodeReport
type DscNodeReportListResult = original.DscNodeReportListResult
type DscNodeReportListResultIterator = original.DscNodeReportListResultIterator
type DscNodeReportListResultPage = original.DscNodeReportListResultPage
type DscNodeUpdateParameters = original.DscNodeUpdateParameters
type DscReportError = original.DscReportError
type DscReportResource = original.DscReportResource
type DscReportResourceNavigation = original.DscReportResourceNavigation
type ErrorResponse = original.ErrorResponse
type FieldDefinition = original.FieldDefinition
type HybridRunbookWorker = original.HybridRunbookWorker
type HybridRunbookWorkerGroup = original.HybridRunbookWorkerGroup
type HybridRunbookWorkerGroupsListResult = original.HybridRunbookWorkerGroupsListResult
type HybridRunbookWorkerGroupsListResultIterator = original.HybridRunbookWorkerGroupsListResultIterator
type HybridRunbookWorkerGroupsListResultPage = original.HybridRunbookWorkerGroupsListResultPage
type HybridRunbookWorkerGroupUpdateParameters = original.HybridRunbookWorkerGroupUpdateParameters
type Job = original.Job
type JobCollectionItem = original.JobCollectionItem
type JobCollectionItemProperties = original.JobCollectionItemProperties
type JobCreateParameters = original.JobCreateParameters
type JobCreateProperties = original.JobCreateProperties
type JobListResultV2 = original.JobListResultV2
type JobListResultV2Iterator = original.JobListResultV2Iterator
type JobListResultV2Page = original.JobListResultV2Page
type JobNavigation = original.JobNavigation
type JobProperties = original.JobProperties
type JobSchedule = original.JobSchedule
type JobScheduleCreateParameters = original.JobScheduleCreateParameters
type JobScheduleCreateProperties = original.JobScheduleCreateProperties
type JobScheduleListResult = original.JobScheduleListResult
type JobScheduleListResultIterator = original.JobScheduleListResultIterator
type JobScheduleListResultPage = original.JobScheduleListResultPage
type JobScheduleProperties = original.JobScheduleProperties
type JobStream = original.JobStream
type JobStreamListResult = original.JobStreamListResult
type JobStreamListResultIterator = original.JobStreamListResultIterator
type JobStreamListResultPage = original.JobStreamListResultPage
type JobStreamProperties = original.JobStreamProperties
type Key = original.Key
type KeyListResult = original.KeyListResult
type LinkedWorkspace = original.LinkedWorkspace
type LinuxProperties = original.LinuxProperties
type Module = original.Module
type ModuleCreateOrUpdateParameters = original.ModuleCreateOrUpdateParameters
type ModuleCreateOrUpdateProperties = original.ModuleCreateOrUpdateProperties
type ModuleErrorInfo = original.ModuleErrorInfo
type ModuleListResult = original.ModuleListResult
type ModuleListResultIterator = original.ModuleListResultIterator
type ModuleListResultPage = original.ModuleListResultPage
type ModuleProperties = original.ModuleProperties
type ModuleUpdateParameters = original.ModuleUpdateParameters
type ModuleUpdateProperties = original.ModuleUpdateProperties
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult
type ProxyResource = original.ProxyResource
type Resource = original.Resource
type RunAsCredentialAssociationProperty = original.RunAsCredentialAssociationProperty
type Runbook = original.Runbook
type RunbookAssociationProperty = original.RunbookAssociationProperty
type RunbookCreateOrUpdateDraftParameters = original.RunbookCreateOrUpdateDraftParameters
type RunbookCreateOrUpdateDraftProperties = original.RunbookCreateOrUpdateDraftProperties
type RunbookCreateOrUpdateParameters = original.RunbookCreateOrUpdateParameters
type RunbookCreateOrUpdateProperties = original.RunbookCreateOrUpdateProperties
type RunbookDraft = original.RunbookDraft
type RunbookDraftPublishFuture = original.RunbookDraftPublishFuture
type RunbookDraftReplaceContentFuture = original.RunbookDraftReplaceContentFuture
type RunbookDraftUndoEditResult = original.RunbookDraftUndoEditResult
type RunbookListResult = original.RunbookListResult
type RunbookListResultIterator = original.RunbookListResultIterator
type RunbookListResultPage = original.RunbookListResultPage
type RunbookParameter = original.RunbookParameter
type RunbookProperties = original.RunbookProperties
type RunbookUpdateParameters = original.RunbookUpdateParameters
type RunbookUpdateProperties = original.RunbookUpdateProperties
type Schedule = original.Schedule
type ScheduleAssociationProperty = original.ScheduleAssociationProperty
type ScheduleCreateOrUpdateParameters = original.ScheduleCreateOrUpdateParameters
type ScheduleCreateOrUpdateProperties = original.ScheduleCreateOrUpdateProperties
type ScheduleListResult = original.ScheduleListResult
type ScheduleListResultIterator = original.ScheduleListResultIterator
type ScheduleListResultPage = original.ScheduleListResultPage
type ScheduleProperties = original.ScheduleProperties
type ScheduleUpdateParameters = original.ScheduleUpdateParameters
type ScheduleUpdateProperties = original.ScheduleUpdateProperties
type SetObject = original.SetObject
type Sku = original.Sku
type SoftwareUpdateConfiguration = original.SoftwareUpdateConfiguration
type SoftwareUpdateConfigurationCollectionItem = original.SoftwareUpdateConfigurationCollectionItem
type SoftwareUpdateConfigurationCollectionItemProperties = original.SoftwareUpdateConfigurationCollectionItemProperties
type SoftwareUpdateConfigurationListResult = original.SoftwareUpdateConfigurationListResult
type SoftwareUpdateConfigurationMachineRun = original.SoftwareUpdateConfigurationMachineRun
type SoftwareUpdateConfigurationMachineRunListResult = original.SoftwareUpdateConfigurationMachineRunListResult
type SoftwareUpdateConfigurationProperties = original.SoftwareUpdateConfigurationProperties
type SoftwareUpdateConfigurationRun = original.SoftwareUpdateConfigurationRun
type SoftwareUpdateConfigurationRunListResult = original.SoftwareUpdateConfigurationRunListResult
type SoftwareUpdateConfigurationRunProperties = original.SoftwareUpdateConfigurationRunProperties
type SourceControl = original.SourceControl
type SourceControlCreateOrUpdateParameters = original.SourceControlCreateOrUpdateParameters
type SourceControlCreateOrUpdateProperties = original.SourceControlCreateOrUpdateProperties
type SourceControlListResult = original.SourceControlListResult
type SourceControlListResultIterator = original.SourceControlListResultIterator
type SourceControlListResultPage = original.SourceControlListResultPage
type SourceControlProperties = original.SourceControlProperties
type SourceControlSyncJob = original.SourceControlSyncJob
type SourceControlSyncJobByID = original.SourceControlSyncJobByID
type SourceControlSyncJobByIDProperties = original.SourceControlSyncJobByIDProperties
type SourceControlSyncJobCreateParameters = original.SourceControlSyncJobCreateParameters
type SourceControlSyncJobCreateProperties = original.SourceControlSyncJobCreateProperties
type SourceControlSyncJobListResult = original.SourceControlSyncJobListResult
type SourceControlSyncJobListResultIterator = original.SourceControlSyncJobListResultIterator
type SourceControlSyncJobListResultPage = original.SourceControlSyncJobListResultPage
type SourceControlSyncJobProperties = original.SourceControlSyncJobProperties
type SourceControlSyncJobStream = original.SourceControlSyncJobStream
type SourceControlSyncJobStreamByID = original.SourceControlSyncJobStreamByID
type SourceControlSyncJobStreamByIDProperties = original.SourceControlSyncJobStreamByIDProperties
type SourceControlSyncJobStreamProperties = original.SourceControlSyncJobStreamProperties
type SourceControlSyncJobStreamsListBySyncJob = original.SourceControlSyncJobStreamsListBySyncJob
type SourceControlSyncJobStreamsListBySyncJobIterator = original.SourceControlSyncJobStreamsListBySyncJobIterator
type SourceControlSyncJobStreamsListBySyncJobPage = original.SourceControlSyncJobStreamsListBySyncJobPage
type SourceControlUpdateParameters = original.SourceControlUpdateParameters
type SourceControlUpdateProperties = original.SourceControlUpdateProperties
type Statistics = original.Statistics
type StatisticsListResult = original.StatisticsListResult
type String = original.String
type TestJob = original.TestJob
type TestJobCreateParameters = original.TestJobCreateParameters
type TrackedResource = original.TrackedResource
type TypeField = original.TypeField
type TypeFieldListResult = original.TypeFieldListResult
type UpdateConfiguration = original.UpdateConfiguration
type UpdateConfigurationMachineRunProperties = original.UpdateConfigurationMachineRunProperties
type UpdateConfigurationNavigation = original.UpdateConfigurationNavigation
type Usage = original.Usage
type UsageCounterName = original.UsageCounterName
type UsageListResult = original.UsageListResult
type Variable = original.Variable
type VariableCreateOrUpdateParameters = original.VariableCreateOrUpdateParameters
type VariableCreateOrUpdateProperties = original.VariableCreateOrUpdateProperties
type VariableListResult = original.VariableListResult
type VariableListResultIterator = original.VariableListResultIterator
type VariableListResultPage = original.VariableListResultPage
type VariableProperties = original.VariableProperties
type VariableUpdateParameters = original.VariableUpdateParameters
type VariableUpdateProperties = original.VariableUpdateProperties
type Webhook = original.Webhook
type WebhookCreateOrUpdateParameters = original.WebhookCreateOrUpdateParameters
type WebhookCreateOrUpdateProperties = original.WebhookCreateOrUpdateProperties
type WebhookListResult = original.WebhookListResult
type WebhookListResultIterator = original.WebhookListResultIterator
type WebhookListResultPage = original.WebhookListResultPage
type WebhookProperties = original.WebhookProperties
type WebhookUpdateParameters = original.WebhookUpdateParameters
type WebhookUpdateProperties = original.WebhookUpdateProperties
type WindowsProperties = original.WindowsProperties
type ModuleClient = original.ModuleClient
type NodeReportsClient = original.NodeReportsClient
type ObjectDataTypesClient = original.ObjectDataTypesClient
type OperationsClient = original.OperationsClient
type RunbookClient = original.RunbookClient
type RunbookDraftClient = original.RunbookDraftClient
type ScheduleClient = original.ScheduleClient
type SoftwareUpdateConfigurationMachineRunsClient = original.SoftwareUpdateConfigurationMachineRunsClient
type SoftwareUpdateConfigurationRunsClient = original.SoftwareUpdateConfigurationRunsClient
type SoftwareUpdateConfigurationsClient = original.SoftwareUpdateConfigurationsClient
type SourceControlClient = original.SourceControlClient
type SourceControlSyncJobClient = original.SourceControlSyncJobClient
type SourceControlSyncJobStreamsClient = original.SourceControlSyncJobStreamsClient
type StatisticsClient = original.StatisticsClient
type TestJobClient = original.TestJobClient
type TestJobStreamsClient = original.TestJobStreamsClient
type UsagesClient = original.UsagesClient
type VariableClient = original.VariableClient
type WebhookClient = original.WebhookClient
func NewAccountClient(subscriptionID string) AccountClient {
return original.NewAccountClient(subscriptionID)
}
func NewAccountClientWithBaseURI(baseURI string, subscriptionID string) AccountClient {
return original.NewAccountClientWithBaseURI(baseURI, subscriptionID)
}
func NewActivityClient(subscriptionID string) ActivityClient {
return original.NewActivityClient(subscriptionID)
}
func NewActivityClientWithBaseURI(baseURI string, subscriptionID string) ActivityClient {
return original.NewActivityClientWithBaseURI(baseURI, subscriptionID)
}
func NewAgentRegistrationInformationClient(subscriptionID string) AgentRegistrationInformationClient {
return original.NewAgentRegistrationInformationClient(subscriptionID)
}
func NewAgentRegistrationInformationClientWithBaseURI(baseURI string, subscriptionID string) AgentRegistrationInformationClient {
return original.NewAgentRegistrationInformationClientWithBaseURI(baseURI, subscriptionID)
}
func NewCertificateClient(subscriptionID string) CertificateClient {
return original.NewCertificateClient(subscriptionID)
}
func NewCertificateClientWithBaseURI(baseURI string, subscriptionID string) CertificateClient {
return original.NewCertificateClientWithBaseURI(baseURI, subscriptionID)
}
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func NewConnectionClient(subscriptionID string) ConnectionClient {
return original.NewConnectionClient(subscriptionID)
}
func NewConnectionClientWithBaseURI(baseURI string, subscriptionID string) ConnectionClient {
return original.NewConnectionClientWithBaseURI(baseURI, subscriptionID)
}
func NewConnectionTypeClient(subscriptionID string) ConnectionTypeClient {
return original.NewConnectionTypeClient(subscriptionID)
}
func NewConnectionTypeClientWithBaseURI(baseURI string, subscriptionID string) ConnectionTypeClient {
return original.NewConnectionTypeClientWithBaseURI(baseURI, subscriptionID)
}
func NewCredentialClient(subscriptionID string) CredentialClient {
return original.NewCredentialClient(subscriptionID)
}
func NewCredentialClientWithBaseURI(baseURI string, subscriptionID string) CredentialClient {
return original.NewCredentialClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscCompilationJobClient(subscriptionID string) DscCompilationJobClient {
return original.NewDscCompilationJobClient(subscriptionID)
}
func NewDscCompilationJobClientWithBaseURI(baseURI string, subscriptionID string) DscCompilationJobClient {
return original.NewDscCompilationJobClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscCompilationJobStreamClient(subscriptionID string) DscCompilationJobStreamClient {
return original.NewDscCompilationJobStreamClient(subscriptionID)
}
func NewDscCompilationJobStreamClientWithBaseURI(baseURI string, subscriptionID string) DscCompilationJobStreamClient {
return original.NewDscCompilationJobStreamClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscConfigurationClient(subscriptionID string) DscConfigurationClient {
return original.NewDscConfigurationClient(subscriptionID)
}
func NewDscConfigurationClientWithBaseURI(baseURI string, subscriptionID string) DscConfigurationClient {
return original.NewDscConfigurationClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscNodeClient(subscriptionID string) DscNodeClient {
return original.NewDscNodeClient(subscriptionID)
}
func NewDscNodeClientWithBaseURI(baseURI string, subscriptionID string) DscNodeClient {
return original.NewDscNodeClientWithBaseURI(baseURI, subscriptionID)
}
func NewDscNodeConfigurationClient(subscriptionID string) DscNodeConfigurationClient {
return original.NewDscNodeConfigurationClient(subscriptionID)
}
func NewDscNodeConfigurationClientWithBaseURI(baseURI string, subscriptionID string) DscNodeConfigurationClient {
return original.NewDscNodeConfigurationClientWithBaseURI(baseURI, subscriptionID)
}
func NewFieldsClient(subscriptionID string) FieldsClient {
return original.NewFieldsClient(subscriptionID)
}
func NewFieldsClientWithBaseURI(baseURI string, subscriptionID string) FieldsClient {
return original.NewFieldsClientWithBaseURI(baseURI, subscriptionID)
}
func NewHybridRunbookWorkerGroupClient(subscriptionID string) HybridRunbookWorkerGroupClient {
return original.NewHybridRunbookWorkerGroupClient(subscriptionID)
}
func NewHybridRunbookWorkerGroupClientWithBaseURI(baseURI string, subscriptionID string) HybridRunbookWorkerGroupClient {
return original.NewHybridRunbookWorkerGroupClientWithBaseURI(baseURI, subscriptionID)
}
func NewJobClient(subscriptionID string) JobClient {
return original.NewJobClient(subscriptionID)
}
func NewJobClientWithBaseURI(baseURI string, subscriptionID string) JobClient {
return original.NewJobClientWithBaseURI(baseURI, subscriptionID)
}
func NewJobScheduleClient(subscriptionID string) JobScheduleClient {
return original.NewJobScheduleClient(subscriptionID)
}
func NewJobScheduleClientWithBaseURI(baseURI string, subscriptionID string) JobScheduleClient {
return original.NewJobScheduleClientWithBaseURI(baseURI, subscriptionID)
}
func NewJobStreamClient(subscriptionID string) JobStreamClient {
return original.NewJobStreamClient(subscriptionID)
}
func NewJobStreamClientWithBaseURI(baseURI string, subscriptionID string) JobStreamClient {
return original.NewJobStreamClientWithBaseURI(baseURI, subscriptionID)
}
func NewKeysClient(subscriptionID string) KeysClient {
return original.NewKeysClient(subscriptionID)
}
func NewKeysClientWithBaseURI(baseURI string, subscriptionID string) KeysClient {
return original.NewKeysClientWithBaseURI(baseURI, subscriptionID)
}
func NewLinkedWorkspaceClient(subscriptionID string) LinkedWorkspaceClient {
return original.NewLinkedWorkspaceClient(subscriptionID)
}
func NewLinkedWorkspaceClientWithBaseURI(baseURI string, subscriptionID string) LinkedWorkspaceClient {
return original.NewLinkedWorkspaceClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleAccountStateValues() []AccountState {
return original.PossibleAccountStateValues()
}
func PossibleAgentRegistrationKeyNameValues() []AgentRegistrationKeyName {
return original.PossibleAgentRegistrationKeyNameValues()
}
func PossibleContentSourceTypeValues() []ContentSourceType {
return original.PossibleContentSourceTypeValues()
}
func PossibleDscConfigurationProvisioningStateValues() []DscConfigurationProvisioningState {
return original.PossibleDscConfigurationProvisioningStateValues()
}
func PossibleDscConfigurationStateValues() []DscConfigurationState {
return original.PossibleDscConfigurationStateValues()
}
func PossibleGroupTypeEnumValues() []GroupTypeEnum {
return original.PossibleGroupTypeEnumValues()
}
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
return original.PossibleHTTPStatusCodeValues()
}
func PossibleJobProvisioningStateValues() []JobProvisioningState {
return original.PossibleJobProvisioningStateValues()
}
func PossibleJobStatusValues() []JobStatus {
return original.PossibleJobStatusValues()
}
func PossibleJobStreamTypeValues() []JobStreamType {
return original.PossibleJobStreamTypeValues()
}
func PossibleKeyNameValues() []KeyName {
return original.PossibleKeyNameValues()
}
func PossibleKeyPermissionsValues() []KeyPermissions {
return original.PossibleKeyPermissionsValues()
}
func PossibleLinuxUpdateClassesValues() []LinuxUpdateClasses {
return original.PossibleLinuxUpdateClassesValues()
}
func PossibleModuleProvisioningStateValues() []ModuleProvisioningState {
return original.PossibleModuleProvisioningStateValues()
}
func PossibleOperatingSystemTypeValues() []OperatingSystemType {
return original.PossibleOperatingSystemTypeValues()
}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
func PossibleRunbookProvisioningStateValues() []RunbookProvisioningState {
return original.PossibleRunbookProvisioningStateValues()
}
func PossibleRunbookStateValues() []RunbookState {
return original.PossibleRunbookStateValues()
}
func PossibleRunbookTypeEnumValues() []RunbookTypeEnum {
return original.PossibleRunbookTypeEnumValues()
}
func PossibleScheduleDayValues() []ScheduleDay {
return original.PossibleScheduleDayValues()
}
func PossibleScheduleFrequencyValues() []ScheduleFrequency {
return original.PossibleScheduleFrequencyValues()
}
func PossibleSkuNameEnumValues() []SkuNameEnum {
return original.PossibleSkuNameEnumValues()
}
func PossibleSourceTypeValues() []SourceType {
return original.PossibleSourceTypeValues()
}
func PossibleStartTypeValues() []StartType {
return original.PossibleStartTypeValues()
}
func PossibleStreamTypeValues() []StreamType {
return original.PossibleStreamTypeValues()
}
func PossibleWindowsUpdateClassesValues() []WindowsUpdateClasses {
return original.PossibleWindowsUpdateClassesValues()
}
func NewModuleClient(subscriptionID string) ModuleClient {
return original.NewModuleClient(subscriptionID)
}
func NewModuleClientWithBaseURI(baseURI string, subscriptionID string) ModuleClient {
return original.NewModuleClientWithBaseURI(baseURI, subscriptionID)
}
func NewNodeReportsClient(subscriptionID string) NodeReportsClient {
return original.NewNodeReportsClient(subscriptionID)
}
func NewNodeReportsClientWithBaseURI(baseURI string, subscriptionID string) NodeReportsClient {
return original.NewNodeReportsClientWithBaseURI(baseURI, subscriptionID)
}
func NewObjectDataTypesClient(subscriptionID string) ObjectDataTypesClient {
return original.NewObjectDataTypesClient(subscriptionID)
}
func NewObjectDataTypesClientWithBaseURI(baseURI string, subscriptionID string) ObjectDataTypesClient {
return original.NewObjectDataTypesClientWithBaseURI(baseURI, subscriptionID)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewRunbookClient(subscriptionID string) RunbookClient {
return original.NewRunbookClient(subscriptionID)
}
func NewRunbookClientWithBaseURI(baseURI string, subscriptionID string) RunbookClient {
return original.NewRunbookClientWithBaseURI(baseURI, subscriptionID)
}
func NewRunbookDraftClient(subscriptionID string) RunbookDraftClient {
return original.NewRunbookDraftClient(subscriptionID)
}
func NewRunbookDraftClientWithBaseURI(baseURI string, subscriptionID string) RunbookDraftClient {
return original.NewRunbookDraftClientWithBaseURI(baseURI, subscriptionID)
}
func NewScheduleClient(subscriptionID string) ScheduleClient {
return original.NewScheduleClient(subscriptionID)
}
func NewScheduleClientWithBaseURI(baseURI string, subscriptionID string) ScheduleClient {
return original.NewScheduleClientWithBaseURI(baseURI, subscriptionID)
}
func NewSoftwareUpdateConfigurationMachineRunsClient(subscriptionID string) SoftwareUpdateConfigurationMachineRunsClient {
return original.NewSoftwareUpdateConfigurationMachineRunsClient(subscriptionID)
}
func NewSoftwareUpdateConfigurationMachineRunsClientWithBaseURI(baseURI string, subscriptionID string) SoftwareUpdateConfigurationMachineRunsClient {
return original.NewSoftwareUpdateConfigurationMachineRunsClientWithBaseURI(baseURI, subscriptionID)
}
func NewSoftwareUpdateConfigurationRunsClient(subscriptionID string) SoftwareUpdateConfigurationRunsClient {
return original.NewSoftwareUpdateConfigurationRunsClient(subscriptionID)
}
func NewSoftwareUpdateConfigurationRunsClientWithBaseURI(baseURI string, subscriptionID string) SoftwareUpdateConfigurationRunsClient {
return original.NewSoftwareUpdateConfigurationRunsClientWithBaseURI(baseURI, subscriptionID)
}
func NewSoftwareUpdateConfigurationsClient(subscriptionID string) SoftwareUpdateConfigurationsClient {
return original.NewSoftwareUpdateConfigurationsClient(subscriptionID)
}
func NewSoftwareUpdateConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) SoftwareUpdateConfigurationsClient {
return original.NewSoftwareUpdateConfigurationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewSourceControlClient(subscriptionID string) SourceControlClient {
return original.NewSourceControlClient(subscriptionID)
}
func NewSourceControlClientWithBaseURI(baseURI string, subscriptionID string) SourceControlClient {
return original.NewSourceControlClientWithBaseURI(baseURI, subscriptionID)
}
func NewSourceControlSyncJobClient(subscriptionID string) SourceControlSyncJobClient {
return original.NewSourceControlSyncJobClient(subscriptionID)
}
func NewSourceControlSyncJobClientWithBaseURI(baseURI string, subscriptionID string) SourceControlSyncJobClient {
return original.NewSourceControlSyncJobClientWithBaseURI(baseURI, subscriptionID)
}
func NewSourceControlSyncJobStreamsClient(subscriptionID string) SourceControlSyncJobStreamsClient {
return original.NewSourceControlSyncJobStreamsClient(subscriptionID)
}
func NewSourceControlSyncJobStreamsClientWithBaseURI(baseURI string, subscriptionID string) SourceControlSyncJobStreamsClient {
return original.NewSourceControlSyncJobStreamsClientWithBaseURI(baseURI, subscriptionID)
}
func NewStatisticsClient(subscriptionID string) StatisticsClient {
return original.NewStatisticsClient(subscriptionID)
}
func NewStatisticsClientWithBaseURI(baseURI string, subscriptionID string) StatisticsClient {
return original.NewStatisticsClientWithBaseURI(baseURI, subscriptionID)
}
func NewTestJobClient(subscriptionID string) TestJobClient {
return original.NewTestJobClient(subscriptionID)
}
func NewTestJobClientWithBaseURI(baseURI string, subscriptionID string) TestJobClient {
return original.NewTestJobClientWithBaseURI(baseURI, subscriptionID)
}
func NewTestJobStreamsClient(subscriptionID string) TestJobStreamsClient {
return original.NewTestJobStreamsClient(subscriptionID)
}
func NewTestJobStreamsClientWithBaseURI(baseURI string, subscriptionID string) TestJobStreamsClient {
return original.NewTestJobStreamsClientWithBaseURI(baseURI, subscriptionID)
}
func NewUsagesClient(subscriptionID string) UsagesClient {
return original.NewUsagesClient(subscriptionID)
}
func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient {
return original.NewUsagesClientWithBaseURI(baseURI, subscriptionID)
}
func NewVariableClient(subscriptionID string) VariableClient {
return original.NewVariableClient(subscriptionID)
}
func NewVariableClientWithBaseURI(baseURI string, subscriptionID string) VariableClient {
return original.NewVariableClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}
func NewWebhookClient(subscriptionID string) WebhookClient {
return original.NewWebhookClient(subscriptionID)
}
func NewWebhookClientWithBaseURI(baseURI string, subscriptionID string) WebhookClient {
return original.NewWebhookClientWithBaseURI(baseURI, subscriptionID)
}

View file

@ -0,0 +1,111 @@
// +build go1.9
// Copyright 2018 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package devspaces
import original "github.com/Azure/azure-sdk-for-go/services/preview/devspaces/mgmt/2018-06-01-preview/devspaces"
const (
DefaultBaseURI = original.DefaultBaseURI
)
type BaseClient = original.BaseClient
type ControllersClient = original.ControllersClient
type InstanceType = original.InstanceType
const (
InstanceTypeKubernetes InstanceType = original.InstanceTypeKubernetes
InstanceTypeOrchestratorSpecificConnectionDetails InstanceType = original.InstanceTypeOrchestratorSpecificConnectionDetails
)
type ProvisioningState = original.ProvisioningState
const (
Canceled ProvisioningState = original.Canceled
Creating ProvisioningState = original.Creating
Deleting ProvisioningState = original.Deleting
Failed ProvisioningState = original.Failed
Succeeded ProvisioningState = original.Succeeded
Updating ProvisioningState = original.Updating
)
type SkuTier = original.SkuTier
const (
Standard SkuTier = original.Standard
)
type Controller = original.Controller
type ControllerConnectionDetails = original.ControllerConnectionDetails
type ControllerConnectionDetailsList = original.ControllerConnectionDetailsList
type ControllerList = original.ControllerList
type ControllerListIterator = original.ControllerListIterator
type ControllerListPage = original.ControllerListPage
type ControllerProperties = original.ControllerProperties
type ControllersCreateFuture = original.ControllersCreateFuture
type ControllersDeleteFuture = original.ControllersDeleteFuture
type ControllerUpdateParameters = original.ControllerUpdateParameters
type ErrorDetails = original.ErrorDetails
type ErrorResponse = original.ErrorResponse
type KubernetesConnectionDetails = original.KubernetesConnectionDetails
type BasicOrchestratorSpecificConnectionDetails = original.BasicOrchestratorSpecificConnectionDetails
type OrchestratorSpecificConnectionDetails = original.OrchestratorSpecificConnectionDetails
type Resource = original.Resource
type ResourceProviderOperationDefinition = original.ResourceProviderOperationDefinition
type ResourceProviderOperationDisplay = original.ResourceProviderOperationDisplay
type ResourceProviderOperationList = original.ResourceProviderOperationList
type ResourceProviderOperationListIterator = original.ResourceProviderOperationListIterator
type ResourceProviderOperationListPage = original.ResourceProviderOperationListPage
type Sku = original.Sku
type TrackedResource = original.TrackedResource
type OperationsClient = original.OperationsClient
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func NewControllersClient(subscriptionID string) ControllersClient {
return original.NewControllersClient(subscriptionID)
}
func NewControllersClientWithBaseURI(baseURI string, subscriptionID string) ControllersClient {
return original.NewControllersClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleInstanceTypeValues() []InstanceType {
return original.PossibleInstanceTypeValues()
}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
func PossibleSkuTierValues() []SkuTier {
return original.PossibleSkuTierValues()
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}

View file

@ -28,6 +28,27 @@ const (
type BaseClient = original.BaseClient type BaseClient = original.BaseClient
type ClustersClient = original.ClustersClient type ClustersClient = original.ClustersClient
type ConfigurationClient = original.ConfigurationClient type ConfigurationClient = original.ConfigurationClient
type IPAction = original.IPAction
const (
Accept IPAction = original.Accept
Reject IPAction = original.Reject
)
type SkuName = original.SkuName
const (
Basic SkuName = original.Basic
Standard SkuName = original.Standard
)
type SkuTier = original.SkuTier
const (
SkuTierBasic SkuTier = original.SkuTierBasic
SkuTierStandard SkuTier = original.SkuTierStandard
)
type Cluster = original.Cluster type Cluster = original.Cluster
type ClusterListResult = original.ClusterListResult type ClusterListResult = original.ClusterListResult
type ClusterListResultIterator = original.ClusterListResultIterator type ClusterListResultIterator = original.ClusterListResultIterator
@ -36,14 +57,33 @@ type ClusterProperties = original.ClusterProperties
type ClusterQuotaConfigurationProperties = original.ClusterQuotaConfigurationProperties type ClusterQuotaConfigurationProperties = original.ClusterQuotaConfigurationProperties
type ClusterSku = original.ClusterSku type ClusterSku = original.ClusterSku
type ClustersPatchFuture = original.ClustersPatchFuture type ClustersPatchFuture = original.ClustersPatchFuture
type EHNamespace = original.EHNamespace
type EHNamespaceListResult = original.EHNamespaceListResult
type EHNamespaceListResultIterator = original.EHNamespaceListResultIterator
type EHNamespaceListResultPage = original.EHNamespaceListResultPage
type EHNamespaceProperties = original.EHNamespaceProperties
type ErrorResponse = original.ErrorResponse type ErrorResponse = original.ErrorResponse
type IPFilterRule = original.IPFilterRule
type IPFilterRuleListResult = original.IPFilterRuleListResult
type IPFilterRuleListResultIterator = original.IPFilterRuleListResultIterator
type IPFilterRuleListResultPage = original.IPFilterRuleListResultPage
type IPFilterRuleProperties = original.IPFilterRuleProperties
type NamespacesCreateOrUpdateFuture = original.NamespacesCreateOrUpdateFuture
type NamespacesDeleteFuture = original.NamespacesDeleteFuture
type Operation = original.Operation type Operation = original.Operation
type OperationDisplay = original.OperationDisplay type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage type OperationListResultPage = original.OperationListResultPage
type Resource = original.Resource type Resource = original.Resource
type Sku = original.Sku
type TrackedResource = original.TrackedResource type TrackedResource = original.TrackedResource
type VirtualNetworkRule = original.VirtualNetworkRule
type VirtualNetworkRuleListResult = original.VirtualNetworkRuleListResult
type VirtualNetworkRuleListResultIterator = original.VirtualNetworkRuleListResultIterator
type VirtualNetworkRuleListResultPage = original.VirtualNetworkRuleListResultPage
type VirtualNetworkRuleProperties = original.VirtualNetworkRuleProperties
type NamespacesClient = original.NamespacesClient
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
func New(subscriptionID string) BaseClient { func New(subscriptionID string) BaseClient {
@ -64,6 +104,21 @@ func NewConfigurationClient(subscriptionID string) ConfigurationClient {
func NewConfigurationClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationClient { func NewConfigurationClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationClient {
return original.NewConfigurationClientWithBaseURI(baseURI, subscriptionID) return original.NewConfigurationClientWithBaseURI(baseURI, subscriptionID)
} }
func PossibleIPActionValues() []IPAction {
return original.PossibleIPActionValues()
}
func PossibleSkuNameValues() []SkuName {
return original.PossibleSkuNameValues()
}
func PossibleSkuTierValues() []SkuTier {
return original.PossibleSkuTierValues()
}
func NewNamespacesClient(subscriptionID string) NamespacesClient {
return original.NewNamespacesClient(subscriptionID)
}
func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) NamespacesClient {
return original.NewNamespacesClientWithBaseURI(baseURI, subscriptionID)
}
func NewOperationsClient(subscriptionID string) OperationsClient { func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID) return original.NewOperationsClient(subscriptionID)
} }

View file

@ -19,7 +19,7 @@
package hdinsight package hdinsight
import original "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2015-03-01-preview/hdinsight" import original "github.com/Azure/azure-sdk-for-go/services/preview/hdinsight/mgmt/2018-06-01-preview/hdinsight"
type ApplicationsClient = original.ApplicationsClient type ApplicationsClient = original.ApplicationsClient
@ -30,8 +30,8 @@ const (
type BaseClient = original.BaseClient type BaseClient = original.BaseClient
type ClustersClient = original.ClustersClient type ClustersClient = original.ClustersClient
type ConfigurationsClient = original.ConfigurationsClient type ConfigurationsClient = original.ConfigurationsClient
type ExtensionClient = original.ExtensionClient type ExtensionsClient = original.ExtensionsClient
type LocationClient = original.LocationClient type LocationsClient = original.LocationsClient
type AsyncOperationState = original.AsyncOperationState type AsyncOperationState = original.AsyncOperationState
const ( const (
@ -56,13 +56,6 @@ const (
ActiveDirectory DirectoryType = original.ActiveDirectory ActiveDirectory DirectoryType = original.ActiveDirectory
) )
type EnabledCredential = original.EnabledCredential
const (
False EnabledCredential = original.False
True EnabledCredential = original.True
)
type OSType = original.OSType type OSType = original.OSType
const ( const (
@ -80,12 +73,12 @@ const (
type Application = original.Application type Application = original.Application
type ApplicationGetEndpoint = original.ApplicationGetEndpoint type ApplicationGetEndpoint = original.ApplicationGetEndpoint
type ApplicationGetHTTPSEndpoint = original.ApplicationGetHTTPSEndpoint type ApplicationGetHTTPSEndpoint = original.ApplicationGetHTTPSEndpoint
type ApplicationGetProperties = original.ApplicationGetProperties
type ApplicationListResult = original.ApplicationListResult type ApplicationListResult = original.ApplicationListResult
type ApplicationListResultIterator = original.ApplicationListResultIterator type ApplicationListResultIterator = original.ApplicationListResultIterator
type ApplicationListResultPage = original.ApplicationListResultPage type ApplicationListResultPage = original.ApplicationListResultPage
type ApplicationProperties = original.ApplicationProperties
type ApplicationsCreateFuture = original.ApplicationsCreateFuture
type ApplicationsDeleteFuture = original.ApplicationsDeleteFuture type ApplicationsDeleteFuture = original.ApplicationsDeleteFuture
type CapabilitiesResult = original.CapabilitiesResult
type Cluster = original.Cluster type Cluster = original.Cluster
type ClusterCreateParametersExtended = original.ClusterCreateParametersExtended type ClusterCreateParametersExtended = original.ClusterCreateParametersExtended
type ClusterCreateProperties = original.ClusterCreateProperties type ClusterCreateProperties = original.ClusterCreateProperties
@ -108,14 +101,17 @@ type ComputeProfile = original.ComputeProfile
type ConfigurationsUpdateHTTPSettingsFuture = original.ConfigurationsUpdateHTTPSettingsFuture type ConfigurationsUpdateHTTPSettingsFuture = original.ConfigurationsUpdateHTTPSettingsFuture
type ConnectivityEndpoint = original.ConnectivityEndpoint type ConnectivityEndpoint = original.ConnectivityEndpoint
type DataDisksGroups = original.DataDisksGroups type DataDisksGroups = original.DataDisksGroups
type ErrorResponse = original.ErrorResponse
type Errors = original.Errors type Errors = original.Errors
type ExecuteScriptActionParameters = original.ExecuteScriptActionParameters type ExecuteScriptActionParameters = original.ExecuteScriptActionParameters
type Extension = original.Extension type Extension = original.Extension
type ExtensionDisableMonitoringFuture = original.ExtensionDisableMonitoringFuture type ExtensionsCreateFuture = original.ExtensionsCreateFuture
type ExtensionEnableMonitoringFuture = original.ExtensionEnableMonitoringFuture type ExtensionsDeleteFuture = original.ExtensionsDeleteFuture
type ExtensionsDisableMonitoringFuture = original.ExtensionsDisableMonitoringFuture
type ExtensionsEnableMonitoringFuture = original.ExtensionsEnableMonitoringFuture
type HardwareProfile = original.HardwareProfile type HardwareProfile = original.HardwareProfile
type HTTPConnectivitySettings = original.HTTPConnectivitySettings
type LinuxOperatingSystemProfile = original.LinuxOperatingSystemProfile type LinuxOperatingSystemProfile = original.LinuxOperatingSystemProfile
type LocalizedName = original.LocalizedName
type Operation = original.Operation type Operation = original.Operation
type OperationDisplay = original.OperationDisplay type OperationDisplay = original.OperationDisplay
type OperationListResult = original.OperationListResult type OperationListResult = original.OperationListResult
@ -124,10 +120,7 @@ type OperationListResultPage = original.OperationListResultPage
type OperationResource = original.OperationResource type OperationResource = original.OperationResource
type OsProfile = original.OsProfile type OsProfile = original.OsProfile
type ProxyResource = original.ProxyResource type ProxyResource = original.ProxyResource
type QuotaCapability = original.QuotaCapability
type QuotaInfo = original.QuotaInfo type QuotaInfo = original.QuotaInfo
type RegionalQuotaCapability = original.RegionalQuotaCapability
type RegionsCapability = original.RegionsCapability
type Resource = original.Resource type Resource = original.Resource
type Role = original.Role type Role = original.Role
type RuntimeScriptAction = original.RuntimeScriptAction type RuntimeScriptAction = original.RuntimeScriptAction
@ -148,11 +141,9 @@ type SSHPublicKey = original.SSHPublicKey
type StorageAccount = original.StorageAccount type StorageAccount = original.StorageAccount
type StorageProfile = original.StorageProfile type StorageProfile = original.StorageProfile
type TrackedResource = original.TrackedResource type TrackedResource = original.TrackedResource
type VersionsCapability = original.VersionsCapability type Usage = original.Usage
type VersionSpec = original.VersionSpec type UsagesListResult = original.UsagesListResult
type VirtualNetworkProfile = original.VirtualNetworkProfile type VirtualNetworkProfile = original.VirtualNetworkProfile
type VMSizeCompatibilityFilter = original.VMSizeCompatibilityFilter
type VMSizesCapability = original.VMSizesCapability
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type ScriptActionsClient = original.ScriptActionsClient type ScriptActionsClient = original.ScriptActionsClient
type ScriptExecutionHistoryClient = original.ScriptExecutionHistoryClient type ScriptExecutionHistoryClient = original.ScriptExecutionHistoryClient
@ -181,17 +172,17 @@ func NewConfigurationsClient(subscriptionID string) ConfigurationsClient {
func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient { func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient {
return original.NewConfigurationsClientWithBaseURI(baseURI, subscriptionID) return original.NewConfigurationsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewExtensionClient(subscriptionID string) ExtensionClient { func NewExtensionsClient(subscriptionID string) ExtensionsClient {
return original.NewExtensionClient(subscriptionID) return original.NewExtensionsClient(subscriptionID)
} }
func NewExtensionClientWithBaseURI(baseURI string, subscriptionID string) ExtensionClient { func NewExtensionsClientWithBaseURI(baseURI string, subscriptionID string) ExtensionsClient {
return original.NewExtensionClientWithBaseURI(baseURI, subscriptionID) return original.NewExtensionsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewLocationClient(subscriptionID string) LocationClient { func NewLocationsClient(subscriptionID string) LocationsClient {
return original.NewLocationClient(subscriptionID) return original.NewLocationsClient(subscriptionID)
} }
func NewLocationClientWithBaseURI(baseURI string, subscriptionID string) LocationClient { func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string) LocationsClient {
return original.NewLocationClientWithBaseURI(baseURI, subscriptionID) return original.NewLocationsClientWithBaseURI(baseURI, subscriptionID)
} }
func PossibleAsyncOperationStateValues() []AsyncOperationState { func PossibleAsyncOperationStateValues() []AsyncOperationState {
return original.PossibleAsyncOperationStateValues() return original.PossibleAsyncOperationStateValues()
@ -202,9 +193,6 @@ func PossibleClusterProvisioningStateValues() []ClusterProvisioningState {
func PossibleDirectoryTypeValues() []DirectoryType { func PossibleDirectoryTypeValues() []DirectoryType {
return original.PossibleDirectoryTypeValues() return original.PossibleDirectoryTypeValues()
} }
func PossibleEnabledCredentialValues() []EnabledCredential {
return original.PossibleEnabledCredentialValues()
}
func PossibleOSTypeValues() []OSType { func PossibleOSTypeValues() []OSType {
return original.PossibleOSTypeValues() return original.PossibleOSTypeValues()
} }

View file

@ -19,10 +19,7 @@
package iotcentral package iotcentral
import ( import original "github.com/Azure/azure-sdk-for-go/services/preview/iotcentral/mgmt/2017-07-01-privatepreview/iotcentral"
original "github.com/Azure/azure-sdk-for-go/services/preview/iotcentral/mgmt/2017-07-01-privatepreview/iotcentral"
uuid "github.com/satori/go.uuid"
)
type AppsClient = original.AppsClient type AppsClient = original.AppsClient
@ -66,16 +63,16 @@ type OperationListResultPage = original.OperationListResultPage
type Resource = original.Resource type Resource = original.Resource
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
func NewAppsClient(subscriptionID uuid.UUID) AppsClient { func NewAppsClient(subscriptionID string) AppsClient {
return original.NewAppsClient(subscriptionID) return original.NewAppsClient(subscriptionID)
} }
func NewAppsClientWithBaseURI(baseURI string, subscriptionID uuid.UUID) AppsClient { func NewAppsClientWithBaseURI(baseURI string, subscriptionID string) AppsClient {
return original.NewAppsClientWithBaseURI(baseURI, subscriptionID) return original.NewAppsClientWithBaseURI(baseURI, subscriptionID)
} }
func New(subscriptionID uuid.UUID) BaseClient { func New(subscriptionID string) BaseClient {
return original.New(subscriptionID) return original.New(subscriptionID)
} }
func NewWithBaseURI(baseURI string, subscriptionID uuid.UUID) BaseClient { func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID) return original.NewWithBaseURI(baseURI, subscriptionID)
} }
func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason { func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason {
@ -84,10 +81,10 @@ func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason {
func PossibleAppSkuValues() []AppSku { func PossibleAppSkuValues() []AppSku {
return original.PossibleAppSkuValues() return original.PossibleAppSkuValues()
} }
func NewOperationsClient(subscriptionID uuid.UUID) OperationsClient { func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID) return original.NewOperationsClient(subscriptionID)
} }
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID uuid.UUID) OperationsClient { func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID) return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
} }
func UserAgent() string { func UserAgent() string {

View file

@ -41,10 +41,10 @@ const (
type JSONWebKeyCurveName = original.JSONWebKeyCurveName type JSONWebKeyCurveName = original.JSONWebKeyCurveName
const ( const (
P256 JSONWebKeyCurveName = original.P256 P256 JSONWebKeyCurveName = original.P256
P384 JSONWebKeyCurveName = original.P384 P256K JSONWebKeyCurveName = original.P256K
P521 JSONWebKeyCurveName = original.P521 P384 JSONWebKeyCurveName = original.P384
SECP256K1 JSONWebKeyCurveName = original.SECP256K1 P521 JSONWebKeyCurveName = original.P521
) )
type JSONWebKeyEncryptionAlgorithm = original.JSONWebKeyEncryptionAlgorithm type JSONWebKeyEncryptionAlgorithm = original.JSONWebKeyEncryptionAlgorithm
@ -69,17 +69,17 @@ const (
type JSONWebKeySignatureAlgorithm = original.JSONWebKeySignatureAlgorithm type JSONWebKeySignatureAlgorithm = original.JSONWebKeySignatureAlgorithm
const ( const (
ECDSA256 JSONWebKeySignatureAlgorithm = original.ECDSA256 ES256 JSONWebKeySignatureAlgorithm = original.ES256
ES256 JSONWebKeySignatureAlgorithm = original.ES256 ES256K JSONWebKeySignatureAlgorithm = original.ES256K
ES384 JSONWebKeySignatureAlgorithm = original.ES384 ES384 JSONWebKeySignatureAlgorithm = original.ES384
ES512 JSONWebKeySignatureAlgorithm = original.ES512 ES512 JSONWebKeySignatureAlgorithm = original.ES512
PS256 JSONWebKeySignatureAlgorithm = original.PS256 PS256 JSONWebKeySignatureAlgorithm = original.PS256
PS384 JSONWebKeySignatureAlgorithm = original.PS384 PS384 JSONWebKeySignatureAlgorithm = original.PS384
PS512 JSONWebKeySignatureAlgorithm = original.PS512 PS512 JSONWebKeySignatureAlgorithm = original.PS512
RS256 JSONWebKeySignatureAlgorithm = original.RS256 RS256 JSONWebKeySignatureAlgorithm = original.RS256
RS384 JSONWebKeySignatureAlgorithm = original.RS384 RS384 JSONWebKeySignatureAlgorithm = original.RS384
RS512 JSONWebKeySignatureAlgorithm = original.RS512 RS512 JSONWebKeySignatureAlgorithm = original.RS512
RSNULL JSONWebKeySignatureAlgorithm = original.RSNULL RSNULL JSONWebKeySignatureAlgorithm = original.RSNULL
) )
type JSONWebKeyType = original.JSONWebKeyType type JSONWebKeyType = original.JSONWebKeyType
@ -116,6 +116,7 @@ const (
type Action = original.Action type Action = original.Action
type AdministratorDetails = original.AdministratorDetails type AdministratorDetails = original.AdministratorDetails
type Attributes = original.Attributes type Attributes = original.Attributes
type BackupCertificateResult = original.BackupCertificateResult
type BackupKeyResult = original.BackupKeyResult type BackupKeyResult = original.BackupKeyResult
type BackupSecretResult = original.BackupSecretResult type BackupSecretResult = original.BackupSecretResult
type BackupStorageResult = original.BackupStorageResult type BackupStorageResult = original.BackupStorageResult
@ -137,6 +138,7 @@ type CertificateMergeParameters = original.CertificateMergeParameters
type CertificateOperation = original.CertificateOperation type CertificateOperation = original.CertificateOperation
type CertificateOperationUpdateParameter = original.CertificateOperationUpdateParameter type CertificateOperationUpdateParameter = original.CertificateOperationUpdateParameter
type CertificatePolicy = original.CertificatePolicy type CertificatePolicy = original.CertificatePolicy
type CertificateRestoreParameters = original.CertificateRestoreParameters
type CertificateUpdateParameters = original.CertificateUpdateParameters type CertificateUpdateParameters = original.CertificateUpdateParameters
type Contact = original.Contact type Contact = original.Contact
type Contacts = original.Contacts type Contacts = original.Contacts

View file

@ -19,7 +19,7 @@
package media package media
import original "github.com/Azure/azure-sdk-for-go/services/preview/mediaservices/mgmt/2018-03-30-preview/media" import original "github.com/Azure/azure-sdk-for-go/services/preview/mediaservices/mgmt/2018-06-01-preview/media"
type AssetsClient = original.AssetsClient type AssetsClient = original.AssetsClient
@ -607,7 +607,6 @@ type StreamingLocatorCollectionIterator = original.StreamingLocatorCollectionIte
type StreamingLocatorCollectionPage = original.StreamingLocatorCollectionPage type StreamingLocatorCollectionPage = original.StreamingLocatorCollectionPage
type StreamingLocatorContentKey = original.StreamingLocatorContentKey type StreamingLocatorContentKey = original.StreamingLocatorContentKey
type StreamingLocatorProperties = original.StreamingLocatorProperties type StreamingLocatorProperties = original.StreamingLocatorProperties
type StreamingLocatorUserDefinedContentKey = original.StreamingLocatorUserDefinedContentKey
type StreamingPath = original.StreamingPath type StreamingPath = original.StreamingPath
type StreamingPolicy = original.StreamingPolicy type StreamingPolicy = original.StreamingPolicy
type StreamingPolicyCollection = original.StreamingPolicyCollection type StreamingPolicyCollection = original.StreamingPolicyCollection

View file

@ -331,13 +331,16 @@ type ItsmReceiver = original.ItsmReceiver
type LocalizableString = original.LocalizableString type LocalizableString = original.LocalizableString
type LocationThresholdRuleCondition = original.LocationThresholdRuleCondition type LocationThresholdRuleCondition = original.LocationThresholdRuleCondition
type LogicAppReceiver = original.LogicAppReceiver type LogicAppReceiver = original.LogicAppReceiver
type LogMetricTrigger = original.LogMetricTrigger
type LogProfileCollection = original.LogProfileCollection type LogProfileCollection = original.LogProfileCollection
type LogProfileProperties = original.LogProfileProperties type LogProfileProperties = original.LogProfileProperties
type LogProfileResource = original.LogProfileResource type LogProfileResource = original.LogProfileResource
type LogProfileResourcePatch = original.LogProfileResourcePatch type LogProfileResourcePatch = original.LogProfileResourcePatch
type LogSearchRule = original.LogSearchRule type LogSearchRule = original.LogSearchRule
type LogSearchRulePatch = original.LogSearchRulePatch
type LogSearchRuleResource = original.LogSearchRuleResource type LogSearchRuleResource = original.LogSearchRuleResource
type LogSearchRuleResourceCollection = original.LogSearchRuleResourceCollection type LogSearchRuleResourceCollection = original.LogSearchRuleResourceCollection
type LogSearchRuleResourcePatch = original.LogSearchRuleResourcePatch
type LogSettings = original.LogSettings type LogSettings = original.LogSettings
type ManagementEventAggregationCondition = original.ManagementEventAggregationCondition type ManagementEventAggregationCondition = original.ManagementEventAggregationCondition
type ManagementEventRuleCondition = original.ManagementEventRuleCondition type ManagementEventRuleCondition = original.ManagementEventRuleCondition

View file

@ -44,6 +44,8 @@ type Solution = original.Solution
type SolutionPlan = original.SolutionPlan type SolutionPlan = original.SolutionPlan
type SolutionProperties = original.SolutionProperties type SolutionProperties = original.SolutionProperties
type SolutionPropertiesList = original.SolutionPropertiesList type SolutionPropertiesList = original.SolutionPropertiesList
type SolutionsCreateOrUpdateFuture = original.SolutionsCreateOrUpdateFuture
type SolutionsDeleteFuture = original.SolutionsDeleteFuture
type OperationsClient = original.OperationsClient type OperationsClient = original.OperationsClient
type SolutionsClient = original.SolutionsClient type SolutionsClient = original.SolutionsClient

View file

@ -50,9 +50,10 @@ const (
type SkuTier = original.SkuTier type SkuTier = original.SkuTier
const ( const (
Basic SkuTier = original.Basic Basic SkuTier = original.Basic
Free SkuTier = original.Free Free SkuTier = original.Free
Premium SkuTier = original.Premium Premium SkuTier = original.Premium
Standard SkuTier = original.Standard
) )
type CreateOrUpdateFuture = original.CreateOrUpdateFuture type CreateOrUpdateFuture = original.CreateOrUpdateFuture

View file

@ -35,6 +35,7 @@ type DatabaseVulnerabilityAssessmentScansClient = original.DatabaseVulnerability
type ElasticPoolOperationsClient = original.ElasticPoolOperationsClient type ElasticPoolOperationsClient = original.ElasticPoolOperationsClient
type ElasticPoolsClient = original.ElasticPoolsClient type ElasticPoolsClient = original.ElasticPoolsClient
type InstanceFailoverGroupsClient = original.InstanceFailoverGroupsClient type InstanceFailoverGroupsClient = original.InstanceFailoverGroupsClient
type ManagedInstanceTdeCertificatesClient = original.ManagedInstanceTdeCertificatesClient
type CapabilityGroup = original.CapabilityGroup type CapabilityGroup = original.CapabilityGroup
const ( const (
@ -211,6 +212,9 @@ const (
type BackupShortTermRetentionPoliciesCreateOrUpdateFuture = original.BackupShortTermRetentionPoliciesCreateOrUpdateFuture type BackupShortTermRetentionPoliciesCreateOrUpdateFuture = original.BackupShortTermRetentionPoliciesCreateOrUpdateFuture
type BackupShortTermRetentionPoliciesUpdateFuture = original.BackupShortTermRetentionPoliciesUpdateFuture type BackupShortTermRetentionPoliciesUpdateFuture = original.BackupShortTermRetentionPoliciesUpdateFuture
type BackupShortTermRetentionPolicy = original.BackupShortTermRetentionPolicy type BackupShortTermRetentionPolicy = original.BackupShortTermRetentionPolicy
type BackupShortTermRetentionPolicyListResult = original.BackupShortTermRetentionPolicyListResult
type BackupShortTermRetentionPolicyListResultIterator = original.BackupShortTermRetentionPolicyListResultIterator
type BackupShortTermRetentionPolicyListResultPage = original.BackupShortTermRetentionPolicyListResultPage
type BackupShortTermRetentionPolicyProperties = original.BackupShortTermRetentionPolicyProperties type BackupShortTermRetentionPolicyProperties = original.BackupShortTermRetentionPolicyProperties
type Database = original.Database type Database = original.Database
type DatabaseListResult = original.DatabaseListResult type DatabaseListResult = original.DatabaseListResult
@ -272,6 +276,7 @@ type LogSizeCapability = original.LogSizeCapability
type ManagedInstanceEditionCapability = original.ManagedInstanceEditionCapability type ManagedInstanceEditionCapability = original.ManagedInstanceEditionCapability
type ManagedInstanceFamilyCapability = original.ManagedInstanceFamilyCapability type ManagedInstanceFamilyCapability = original.ManagedInstanceFamilyCapability
type ManagedInstancePairInfo = original.ManagedInstancePairInfo type ManagedInstancePairInfo = original.ManagedInstancePairInfo
type ManagedInstanceTdeCertificatesCreateFuture = original.ManagedInstanceTdeCertificatesCreateFuture
type ManagedInstanceVcoresCapability = original.ManagedInstanceVcoresCapability type ManagedInstanceVcoresCapability = original.ManagedInstanceVcoresCapability
type ManagedInstanceVersionCapability = original.ManagedInstanceVersionCapability type ManagedInstanceVersionCapability = original.ManagedInstanceVersionCapability
type MaxSizeCapability = original.MaxSizeCapability type MaxSizeCapability = original.MaxSizeCapability
@ -284,6 +289,9 @@ type ResourceMoveDefinition = original.ResourceMoveDefinition
type ServerVersionCapability = original.ServerVersionCapability type ServerVersionCapability = original.ServerVersionCapability
type ServiceObjectiveCapability = original.ServiceObjectiveCapability type ServiceObjectiveCapability = original.ServiceObjectiveCapability
type Sku = original.Sku type Sku = original.Sku
type TdeCertificate = original.TdeCertificate
type TdeCertificateProperties = original.TdeCertificateProperties
type TdeCertificatesCreateFuture = original.TdeCertificatesCreateFuture
type TrackedResource = original.TrackedResource type TrackedResource = original.TrackedResource
type VulnerabilityAssessmentRecurringScansProperties = original.VulnerabilityAssessmentRecurringScansProperties type VulnerabilityAssessmentRecurringScansProperties = original.VulnerabilityAssessmentRecurringScansProperties
type VulnerabilityAssessmentScanError = original.VulnerabilityAssessmentScanError type VulnerabilityAssessmentScanError = original.VulnerabilityAssessmentScanError
@ -292,6 +300,7 @@ type VulnerabilityAssessmentScanRecordListResult = original.VulnerabilityAssessm
type VulnerabilityAssessmentScanRecordListResultIterator = original.VulnerabilityAssessmentScanRecordListResultIterator type VulnerabilityAssessmentScanRecordListResultIterator = original.VulnerabilityAssessmentScanRecordListResultIterator
type VulnerabilityAssessmentScanRecordListResultPage = original.VulnerabilityAssessmentScanRecordListResultPage type VulnerabilityAssessmentScanRecordListResultPage = original.VulnerabilityAssessmentScanRecordListResultPage
type VulnerabilityAssessmentScanRecordProperties = original.VulnerabilityAssessmentScanRecordProperties type VulnerabilityAssessmentScanRecordProperties = original.VulnerabilityAssessmentScanRecordProperties
type TdeCertificatesClient = original.TdeCertificatesClient
func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient { func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient {
return original.NewBackupShortTermRetentionPoliciesClient(subscriptionID) return original.NewBackupShortTermRetentionPoliciesClient(subscriptionID)
@ -347,6 +356,12 @@ func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGrou
func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient { func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient {
return original.NewInstanceFailoverGroupsClientWithBaseURI(baseURI, subscriptionID) return original.NewInstanceFailoverGroupsClientWithBaseURI(baseURI, subscriptionID)
} }
func NewManagedInstanceTdeCertificatesClient(subscriptionID string) ManagedInstanceTdeCertificatesClient {
return original.NewManagedInstanceTdeCertificatesClient(subscriptionID)
}
func NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) ManagedInstanceTdeCertificatesClient {
return original.NewManagedInstanceTdeCertificatesClientWithBaseURI(baseURI, subscriptionID)
}
func PossibleCapabilityGroupValues() []CapabilityGroup { func PossibleCapabilityGroupValues() []CapabilityGroup {
return original.PossibleCapabilityGroupValues() return original.PossibleCapabilityGroupValues()
} }
@ -404,6 +419,12 @@ func PossibleVulnerabilityAssessmentScanStateValues() []VulnerabilityAssessmentS
func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType { func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType {
return original.PossibleVulnerabilityAssessmentScanTriggerTypeValues() return original.PossibleVulnerabilityAssessmentScanTriggerTypeValues()
} }
func NewTdeCertificatesClient(subscriptionID string) TdeCertificatesClient {
return original.NewTdeCertificatesClient(subscriptionID)
}
func NewTdeCertificatesClientWithBaseURI(baseURI string, subscriptionID string) TdeCertificatesClient {
return original.NewTdeCertificatesClientWithBaseURI(baseURI, subscriptionID)
}
func UserAgent() string { func UserAgent() string {
return original.UserAgent() + " profiles/preview" return original.UserAgent() + " profiles/preview"
} }

View file

@ -52,17 +52,22 @@ const (
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
ContainerTypeCluster ContainerType = original.ContainerTypeCluster ContainerTypeCluster ContainerType = original.ContainerTypeCluster
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
ContainerTypeExchangeDAG ContainerType = original.ContainerTypeExchangeDAG
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
ContainerTypeHyperVCluster ContainerType = original.ContainerTypeHyperVCluster
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
ContainerTypeSharepointFarm ContainerType = original.ContainerTypeSharepointFarm
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
ContainerTypeSQLCluster ContainerType = original.ContainerTypeSQLCluster
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
ContainerTypeWindows ContainerType = original.ContainerTypeWindows ContainerTypeWindows ContainerType = original.ContainerTypeWindows
ContainerTypeWindowsClient ContainerType = original.ContainerTypeWindowsClient
) )
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
@ -74,13 +79,13 @@ const (
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1 ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1 ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
ContainerTypeMABWindowsContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeMABWindowsContainer
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1 ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1 ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1
) )
type CopyOptions = original.CopyOptions type CopyOptions = original.CopyOptions
@ -93,6 +98,14 @@ const (
CopyOptionsSkip CopyOptions = original.CopyOptionsSkip CopyOptionsSkip CopyOptions = original.CopyOptionsSkip
) )
type CreateMode = original.CreateMode
const (
CreateModeDefault CreateMode = original.CreateModeDefault
CreateModeInvalid CreateMode = original.CreateModeInvalid
CreateModeRecover CreateMode = original.CreateModeRecover
)
type DataSourceType = original.DataSourceType type DataSourceType = original.DataSourceType
const ( const (
@ -103,6 +116,7 @@ const (
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
DataSourceTypeSAPHanaDatabase DataSourceType = original.DataSourceTypeSAPHanaDatabase
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
@ -149,6 +163,7 @@ const (
type FeatureType = original.FeatureType type FeatureType = original.FeatureType
const ( const (
FeatureTypeAzureBackupGoals FeatureType = original.FeatureTypeAzureBackupGoals
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
) )
@ -241,6 +256,7 @@ const (
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
ItemTypeInvalid ItemType = original.ItemTypeInvalid ItemTypeInvalid ItemType = original.ItemTypeInvalid
ItemTypeSAPHanaDatabase ItemType = original.ItemTypeSAPHanaDatabase
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
@ -309,17 +325,22 @@ const (
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
MabServerTypeCluster MabServerType = original.MabServerTypeCluster MabServerTypeCluster MabServerType = original.MabServerTypeCluster
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
MabServerTypeExchangeDAG MabServerType = original.MabServerTypeExchangeDAG
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
MabServerTypeHyperVCluster MabServerType = original.MabServerTypeHyperVCluster
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
MabServerTypeSharepointFarm MabServerType = original.MabServerTypeSharepointFarm
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
MabServerTypeSQLCluster MabServerType = original.MabServerTypeSQLCluster
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
MabServerTypeWindows MabServerType = original.MabServerTypeWindows MabServerTypeWindows MabServerType = original.MabServerTypeWindows
MabServerTypeWindowsClient MabServerType = original.MabServerTypeWindowsClient
) )
type ManagementType = original.ManagementType type ManagementType = original.ManagementType
@ -402,24 +423,28 @@ const (
type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint
const ( const (
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
) )
type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest
const ( const (
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
) )
type OperationStatusValues = original.OperationStatusValues type OperationStatusValues = original.OperationStatusValues
@ -456,6 +481,8 @@ const (
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
@ -488,6 +515,8 @@ type ProtectedItemType = original.ProtectedItemType
const ( const (
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
ProtectedItemTypeAzureVMWorkloadProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadProtectedItem
ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
@ -501,8 +530,11 @@ const (
type ProtectionIntentItemType = original.ProtectionIntentItemType type ProtectionIntentItemType = original.ProtectionIntentItemType
const ( const (
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent
ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
ProtectionIntentItemTypeRecoveryServiceVaultItem ProtectionIntentItemType = original.ProtectionIntentItemTypeRecoveryServiceVaultItem
) )
type ProtectionState = original.ProtectionState type ProtectionState = original.ProtectionState
@ -697,25 +729,30 @@ const (
type WeekOfMonth = original.WeekOfMonth type WeekOfMonth = original.WeekOfMonth
const ( const (
First WeekOfMonth = original.First WeekOfMonthFirst WeekOfMonth = original.WeekOfMonthFirst
Fourth WeekOfMonth = original.Fourth WeekOfMonthFourth WeekOfMonth = original.WeekOfMonthFourth
Last WeekOfMonth = original.Last WeekOfMonthInvalid WeekOfMonth = original.WeekOfMonthInvalid
Second WeekOfMonth = original.Second WeekOfMonthLast WeekOfMonth = original.WeekOfMonthLast
Third WeekOfMonth = original.Third WeekOfMonthSecond WeekOfMonth = original.WeekOfMonthSecond
WeekOfMonthThird WeekOfMonth = original.WeekOfMonthThird
) )
type WorkloadItemType = original.WorkloadItemType type WorkloadItemType = original.WorkloadItemType
const ( const (
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase WorkloadItemTypeSAPHanaDatabase WorkloadItemType = original.WorkloadItemTypeSAPHanaDatabase
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance WorkloadItemTypeSAPHanaSystem WorkloadItemType = original.WorkloadItemTypeSAPHanaSystem
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
) )
type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem
const ( const (
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1
WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1 WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1 WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
@ -731,6 +768,7 @@ const (
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
WorkloadTypeSAPHanaDatabase WorkloadType = original.WorkloadTypeSAPHanaDatabase
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
@ -739,6 +777,7 @@ const (
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
) )
type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest
type AzureBackupServerContainer = original.AzureBackupServerContainer type AzureBackupServerContainer = original.AzureBackupServerContainer
type AzureBackupServerEngine = original.AzureBackupServerEngine type AzureBackupServerEngine = original.AzureBackupServerEngine
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
@ -763,6 +802,8 @@ type BasicAzureIaaSVMProtectedItem = original.BasicAzureIaaSVMProtectedItem
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
type BasicAzureRecoveryServiceVaultProtectionIntent = original.BasicAzureRecoveryServiceVaultProtectionIntent
type AzureRecoveryServiceVaultProtectionIntent = original.AzureRecoveryServiceVaultProtectionIntent
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
type AzureSQLContainer = original.AzureSQLContainer type AzureSQLContainer = original.AzureSQLContainer
@ -783,14 +824,23 @@ type BasicAzureVMWorkloadItem = original.BasicAzureVMWorkloadItem
type AzureVMWorkloadItem = original.AzureVMWorkloadItem type AzureVMWorkloadItem = original.AzureVMWorkloadItem
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
type BasicAzureVMWorkloadProtectedItem = original.BasicAzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy type AzureVMWorkloadProtectionPolicy = original.AzureVMWorkloadProtectionPolicy
type AzureVMWorkloadSAPHanaDatabaseProtectableItem = original.AzureVMWorkloadSAPHanaDatabaseProtectableItem
type AzureVMWorkloadSAPHanaDatabaseProtectedItem = original.AzureVMWorkloadSAPHanaDatabaseProtectedItem
type AzureVMWorkloadSAPHanaDatabaseWorkloadItem = original.AzureVMWorkloadSAPHanaDatabaseWorkloadItem
type AzureVMWorkloadSAPHanaSystemProtectableItem = original.AzureVMWorkloadSAPHanaSystemProtectableItem
type AzureVMWorkloadSAPHanaSystemWorkloadItem = original.AzureVMWorkloadSAPHanaSystemWorkloadItem
type AzureVMWorkloadSQLAvailabilityGroupProtectableItem = original.AzureVMWorkloadSQLAvailabilityGroupProtectableItem type AzureVMWorkloadSQLAvailabilityGroupProtectableItem = original.AzureVMWorkloadSQLAvailabilityGroupProtectableItem
type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem type AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
type BasicAzureWorkloadAutoProtectionIntent = original.BasicAzureWorkloadAutoProtectionIntent
type AzureWorkloadAutoProtectionIntent = original.AzureWorkloadAutoProtectionIntent
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
type AzureWorkloadContainer = original.AzureWorkloadContainer type AzureWorkloadContainer = original.AzureWorkloadContainer
@ -803,6 +853,13 @@ type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest type AzureWorkloadRestoreRequest = original.AzureWorkloadRestoreRequest
type AzureWorkloadSAPHanaPointInTimeRecoveryPoint = original.AzureWorkloadSAPHanaPointInTimeRecoveryPoint
type AzureWorkloadSAPHanaPointInTimeRestoreRequest = original.AzureWorkloadSAPHanaPointInTimeRestoreRequest
type BasicAzureWorkloadSAPHanaRecoveryPoint = original.BasicAzureWorkloadSAPHanaRecoveryPoint
type AzureWorkloadSAPHanaRecoveryPoint = original.AzureWorkloadSAPHanaRecoveryPoint
type BasicAzureWorkloadSAPHanaRestoreRequest = original.BasicAzureWorkloadSAPHanaRestoreRequest
type AzureWorkloadSAPHanaRestoreRequest = original.AzureWorkloadSAPHanaRestoreRequest
type AzureWorkloadSQLAutoProtectionIntent = original.AzureWorkloadSQLAutoProtectionIntent
type AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint type AzureWorkloadSQLPointInTimeRecoveryPoint = original.AzureWorkloadSQLPointInTimeRecoveryPoint
type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest type AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
@ -815,6 +872,7 @@ type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
type BMSContainerQueryObject = original.BMSContainerQueryObject type BMSContainerQueryObject = original.BMSContainerQueryObject
type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject
type BMSPOQueryObject = original.BMSPOQueryObject type BMSPOQueryObject = original.BMSPOQueryObject
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
type BMSRPQueryObject = original.BMSRPQueryObject type BMSRPQueryObject = original.BMSRPQueryObject
@ -1102,6 +1160,9 @@ func PossibleContainerTypeBasicProtectionContainerValues() []ContainerTypeBasicP
func PossibleCopyOptionsValues() []CopyOptions { func PossibleCopyOptionsValues() []CopyOptions {
return original.PossibleCopyOptionsValues() return original.PossibleCopyOptionsValues()
} }
func PossibleCreateModeValues() []CreateMode {
return original.PossibleCreateModeValues()
}
func PossibleDataSourceTypeValues() []DataSourceType { func PossibleDataSourceTypeValues() []DataSourceType {
return original.PossibleDataSourceTypeValues() return original.PossibleDataSourceTypeValues()
} }

View file

@ -33,71 +33,64 @@ const (
Single AppliedScopeType = original.Single Single AppliedScopeType = original.Single
) )
type AppliedScopeType1 = original.AppliedScopeType1 type ErrorResponseCode = original.ErrorResponseCode
const ( const (
AppliedScopeType1Shared AppliedScopeType1 = original.AppliedScopeType1Shared ActivateQuoteFailed ErrorResponseCode = original.ActivateQuoteFailed
AppliedScopeType1Single AppliedScopeType1 = original.AppliedScopeType1Single AppliedScopesNotAssociatedWithCommerceAccount ErrorResponseCode = original.AppliedScopesNotAssociatedWithCommerceAccount
) AuthorizationFailed ErrorResponseCode = original.AuthorizationFailed
BadRequest ErrorResponseCode = original.BadRequest
type Code = original.Code BillingCustomerInputError ErrorResponseCode = original.BillingCustomerInputError
BillingError ErrorResponseCode = original.BillingError
const ( BillingPaymentInstrumentHardError ErrorResponseCode = original.BillingPaymentInstrumentHardError
ActivateQuoteFailed Code = original.ActivateQuoteFailed BillingPaymentInstrumentSoftError ErrorResponseCode = original.BillingPaymentInstrumentSoftError
AppliedScopesNotAssociatedWithCommerceAccount Code = original.AppliedScopesNotAssociatedWithCommerceAccount BillingScopeIDCannotBeChanged ErrorResponseCode = original.BillingScopeIDCannotBeChanged
AuthorizationFailed Code = original.AuthorizationFailed BillingTransientError ErrorResponseCode = original.BillingTransientError
BadRequest Code = original.BadRequest CalculatePriceFailed ErrorResponseCode = original.CalculatePriceFailed
BillingCustomerInputError Code = original.BillingCustomerInputError CapacityUpdateScopesFailed ErrorResponseCode = original.CapacityUpdateScopesFailed
BillingError Code = original.BillingError ClientCertificateThumbprintNotSet ErrorResponseCode = original.ClientCertificateThumbprintNotSet
BillingPaymentInstrumentHardError Code = original.BillingPaymentInstrumentHardError CreateQuoteFailed ErrorResponseCode = original.CreateQuoteFailed
BillingPaymentInstrumentSoftError Code = original.BillingPaymentInstrumentSoftError Forbidden ErrorResponseCode = original.Forbidden
BillingScopeIDCannotBeChanged Code = original.BillingScopeIDCannotBeChanged FulfillmentConfigurationError ErrorResponseCode = original.FulfillmentConfigurationError
BillingTransientError Code = original.BillingTransientError FulfillmentError ErrorResponseCode = original.FulfillmentError
CalculatePriceFailed Code = original.CalculatePriceFailed FulfillmentOutOfStockError ErrorResponseCode = original.FulfillmentOutOfStockError
CapacityUpdateScopesFailed Code = original.CapacityUpdateScopesFailed FulfillmentTransientError ErrorResponseCode = original.FulfillmentTransientError
ClientCertificateThumbprintNotSet Code = original.ClientCertificateThumbprintNotSet HTTPMethodNotSupported ErrorResponseCode = original.HTTPMethodNotSupported
CreateQuoteFailed Code = original.CreateQuoteFailed InternalServerError ErrorResponseCode = original.InternalServerError
Forbidden Code = original.Forbidden InvalidAccessToken ErrorResponseCode = original.InvalidAccessToken
FulfillmentConfigurationError Code = original.FulfillmentConfigurationError InvalidFulfillmentRequestParameters ErrorResponseCode = original.InvalidFulfillmentRequestParameters
FulfillmentError Code = original.FulfillmentError InvalidHealthCheckType ErrorResponseCode = original.InvalidHealthCheckType
FulfillmentOutOfStockError Code = original.FulfillmentOutOfStockError InvalidLocationID ErrorResponseCode = original.InvalidLocationID
FulfillmentTransientError Code = original.FulfillmentTransientError InvalidRefundQuantity ErrorResponseCode = original.InvalidRefundQuantity
HTTPMethodNotSupported Code = original.HTTPMethodNotSupported InvalidRequestContent ErrorResponseCode = original.InvalidRequestContent
InternalServerError Code = original.InternalServerError InvalidRequestURI ErrorResponseCode = original.InvalidRequestURI
InvalidAccessToken Code = original.InvalidAccessToken InvalidReservationID ErrorResponseCode = original.InvalidReservationID
InvalidFulfillmentRequestParameters Code = original.InvalidFulfillmentRequestParameters InvalidReservationOrderID ErrorResponseCode = original.InvalidReservationOrderID
InvalidHealthCheckType Code = original.InvalidHealthCheckType InvalidSingleAppliedScopesCount ErrorResponseCode = original.InvalidSingleAppliedScopesCount
InvalidLocationID Code = original.InvalidLocationID InvalidSubscriptionID ErrorResponseCode = original.InvalidSubscriptionID
InvalidRefundQuantity Code = original.InvalidRefundQuantity InvalidTenantID ErrorResponseCode = original.InvalidTenantID
InvalidRequestContent Code = original.InvalidRequestContent MissingAppliedScopesForSingle ErrorResponseCode = original.MissingAppliedScopesForSingle
InvalidRequestURI Code = original.InvalidRequestURI MissingTenantID ErrorResponseCode = original.MissingTenantID
InvalidReservationID Code = original.InvalidReservationID NonsupportedAccountID ErrorResponseCode = original.NonsupportedAccountID
InvalidReservationOrderID Code = original.InvalidReservationOrderID NotSpecified ErrorResponseCode = original.NotSpecified
InvalidSingleAppliedScopesCount Code = original.InvalidSingleAppliedScopesCount NotSupportedCountry ErrorResponseCode = original.NotSupportedCountry
InvalidSubscriptionID Code = original.InvalidSubscriptionID NoValidReservationsToReRate ErrorResponseCode = original.NoValidReservationsToReRate
InvalidTenantID Code = original.InvalidTenantID OperationCannotBePerformedInCurrentState ErrorResponseCode = original.OperationCannotBePerformedInCurrentState
MissingAppliedScopesForSingle Code = original.MissingAppliedScopesForSingle OperationFailed ErrorResponseCode = original.OperationFailed
MissingTenantID Code = original.MissingTenantID PatchValuesSameAsExisting ErrorResponseCode = original.PatchValuesSameAsExisting
NonsupportedAccountID Code = original.NonsupportedAccountID PaymentInstrumentNotFound ErrorResponseCode = original.PaymentInstrumentNotFound
NotSpecified Code = original.NotSpecified PurchaseError ErrorResponseCode = original.PurchaseError
NotSupportedCountry Code = original.NotSupportedCountry ReRateOnlyAllowedForEA ErrorResponseCode = original.ReRateOnlyAllowedForEA
NoValidReservationsToReRate Code = original.NoValidReservationsToReRate ReservationIDNotInReservationOrder ErrorResponseCode = original.ReservationIDNotInReservationOrder
OperationCannotBePerformedInCurrentState Code = original.OperationCannotBePerformedInCurrentState ReservationOrderCreationFailed ErrorResponseCode = original.ReservationOrderCreationFailed
OperationFailed Code = original.OperationFailed ReservationOrderIDAlreadyExists ErrorResponseCode = original.ReservationOrderIDAlreadyExists
PatchValuesSameAsExisting Code = original.PatchValuesSameAsExisting ReservationOrderNotEnabled ErrorResponseCode = original.ReservationOrderNotEnabled
PaymentInstrumentNotFound Code = original.PaymentInstrumentNotFound ReservationOrderNotFound ErrorResponseCode = original.ReservationOrderNotFound
PurchaseError Code = original.PurchaseError RiskCheckFailed ErrorResponseCode = original.RiskCheckFailed
ReRateOnlyAllowedForEA Code = original.ReRateOnlyAllowedForEA RoleAssignmentCreationFailed ErrorResponseCode = original.RoleAssignmentCreationFailed
ReservationIDNotInReservationOrder Code = original.ReservationIDNotInReservationOrder ServerTimeout ErrorResponseCode = original.ServerTimeout
ReservationOrderCreationFailed Code = original.ReservationOrderCreationFailed UnauthenticatedRequestsThrottled ErrorResponseCode = original.UnauthenticatedRequestsThrottled
ReservationOrderIDAlreadyExists Code = original.ReservationOrderIDAlreadyExists UnsupportedReservationTerm ErrorResponseCode = original.UnsupportedReservationTerm
ReservationOrderNotEnabled Code = original.ReservationOrderNotEnabled
ReservationOrderNotFound Code = original.ReservationOrderNotFound
RiskCheckFailed Code = original.RiskCheckFailed
RoleAssignmentCreationFailed Code = original.RoleAssignmentCreationFailed
ServerTimeout Code = original.ServerTimeout
UnauthenticatedRequestsThrottled Code = original.UnauthenticatedRequestsThrottled
UnsupportedReservationTerm Code = original.UnsupportedReservationTerm
) )
type InstanceFlexibility = original.InstanceFlexibility type InstanceFlexibility = original.InstanceFlexibility
@ -108,81 +101,11 @@ const (
On InstanceFlexibility = original.On On InstanceFlexibility = original.On
) )
type InstanceFlexibility1 = original.InstanceFlexibility1 type ReservationTerm = original.ReservationTerm
const ( const (
InstanceFlexibility1NotSupported InstanceFlexibility1 = original.InstanceFlexibility1NotSupported P1Y ReservationTerm = original.P1Y
InstanceFlexibility1Off InstanceFlexibility1 = original.InstanceFlexibility1Off P3Y ReservationTerm = original.P3Y
InstanceFlexibility1On InstanceFlexibility1 = original.InstanceFlexibility1On
)
type Location = original.Location
const (
Australiac Location = original.Australiac
Australiac2 Location = original.Australiac2
Australiaeast Location = original.Australiaeast
Australiasoutheast Location = original.Australiasoutheast
Brazilsouth Location = original.Brazilsouth
Canadacentral Location = original.Canadacentral
Canadaeast Location = original.Canadaeast
Centralindia Location = original.Centralindia
Centralus Location = original.Centralus
Eastasia Location = original.Eastasia
Eastus Location = original.Eastus
Eastus2 Location = original.Eastus2
Francecentral Location = original.Francecentral
Francesouth Location = original.Francesouth
Japaneast Location = original.Japaneast
Japanwest Location = original.Japanwest
Northcentralus Location = original.Northcentralus
Northeurope Location = original.Northeurope
Southcentralus Location = original.Southcentralus
Southeastasia Location = original.Southeastasia
Southindia Location = original.Southindia
Uksouth Location = original.Uksouth
Ukwest Location = original.Ukwest
Westcentralus Location = original.Westcentralus
Westeurope Location = original.Westeurope
Westindia Location = original.Westindia
Westus Location = original.Westus
Westus2 Location = original.Westus2
)
type ProvisioningState = original.ProvisioningState
const (
BillingFailed ProvisioningState = original.BillingFailed
Cancelled ProvisioningState = original.Cancelled
ConfirmedBilling ProvisioningState = original.ConfirmedBilling
ConfirmedResourceHold ProvisioningState = original.ConfirmedResourceHold
Created ProvisioningState = original.Created
Creating ProvisioningState = original.Creating
Expired ProvisioningState = original.Expired
Failed ProvisioningState = original.Failed
Merged ProvisioningState = original.Merged
PendingBilling ProvisioningState = original.PendingBilling
PendingResourceHold ProvisioningState = original.PendingResourceHold
Split ProvisioningState = original.Split
Succeeded ProvisioningState = original.Succeeded
)
type ProvisioningState1 = original.ProvisioningState1
const (
ProvisioningState1BillingFailed ProvisioningState1 = original.ProvisioningState1BillingFailed
ProvisioningState1Cancelled ProvisioningState1 = original.ProvisioningState1Cancelled
ProvisioningState1ConfirmedBilling ProvisioningState1 = original.ProvisioningState1ConfirmedBilling
ProvisioningState1ConfirmedResourceHold ProvisioningState1 = original.ProvisioningState1ConfirmedResourceHold
ProvisioningState1Created ProvisioningState1 = original.ProvisioningState1Created
ProvisioningState1Creating ProvisioningState1 = original.ProvisioningState1Creating
ProvisioningState1Expired ProvisioningState1 = original.ProvisioningState1Expired
ProvisioningState1Failed ProvisioningState1 = original.ProvisioningState1Failed
ProvisioningState1Merged ProvisioningState1 = original.ProvisioningState1Merged
ProvisioningState1PendingBilling ProvisioningState1 = original.ProvisioningState1PendingBilling
ProvisioningState1PendingResourceHold ProvisioningState1 = original.ProvisioningState1PendingResourceHold
ProvisioningState1Split ProvisioningState1 = original.ProvisioningState1Split
ProvisioningState1Succeeded ProvisioningState1 = original.ProvisioningState1Succeeded
) )
type ReservedResourceType = original.ReservedResourceType type ReservedResourceType = original.ReservedResourceType
@ -207,13 +130,6 @@ const (
StatusCodeSucceeded StatusCode = original.StatusCodeSucceeded StatusCodeSucceeded StatusCode = original.StatusCodeSucceeded
) )
type Term = original.Term
const (
P1Y Term = original.P1Y
P3Y Term = original.P3Y
)
type AppliedReservationList = original.AppliedReservationList type AppliedReservationList = original.AppliedReservationList
type AppliedReservations = original.AppliedReservations type AppliedReservations = original.AppliedReservations
type AppliedReservationsProperties = original.AppliedReservationsProperties type AppliedReservationsProperties = original.AppliedReservationsProperties
@ -265,26 +181,14 @@ func NewWithBaseURI(baseURI string) BaseClient {
func PossibleAppliedScopeTypeValues() []AppliedScopeType { func PossibleAppliedScopeTypeValues() []AppliedScopeType {
return original.PossibleAppliedScopeTypeValues() return original.PossibleAppliedScopeTypeValues()
} }
func PossibleAppliedScopeType1Values() []AppliedScopeType1 { func PossibleErrorResponseCodeValues() []ErrorResponseCode {
return original.PossibleAppliedScopeType1Values() return original.PossibleErrorResponseCodeValues()
}
func PossibleCodeValues() []Code {
return original.PossibleCodeValues()
} }
func PossibleInstanceFlexibilityValues() []InstanceFlexibility { func PossibleInstanceFlexibilityValues() []InstanceFlexibility {
return original.PossibleInstanceFlexibilityValues() return original.PossibleInstanceFlexibilityValues()
} }
func PossibleInstanceFlexibility1Values() []InstanceFlexibility1 { func PossibleReservationTermValues() []ReservationTerm {
return original.PossibleInstanceFlexibility1Values() return original.PossibleReservationTermValues()
}
func PossibleLocationValues() []Location {
return original.PossibleLocationValues()
}
func PossibleProvisioningStateValues() []ProvisioningState {
return original.PossibleProvisioningStateValues()
}
func PossibleProvisioningState1Values() []ProvisioningState1 {
return original.PossibleProvisioningState1Values()
} }
func PossibleReservedResourceTypeValues() []ReservedResourceType { func PossibleReservedResourceTypeValues() []ReservedResourceType {
return original.PossibleReservedResourceTypeValues() return original.PossibleReservedResourceTypeValues()
@ -292,9 +196,6 @@ func PossibleReservedResourceTypeValues() []ReservedResourceType {
func PossibleStatusCodeValues() []StatusCode { func PossibleStatusCodeValues() []StatusCode {
return original.PossibleStatusCodeValues() return original.PossibleStatusCodeValues()
} }
func PossibleTermValues() []Term {
return original.PossibleTermValues()
}
func NewOperationClient() OperationClient { func NewOperationClient() OperationClient {
return original.NewOperationClient() return original.NewOperationClient()
} }

View file

@ -0,0 +1,120 @@
// +build go1.9
// Copyright 2018 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package storagedatalake
import original "github.com/Azure/azure-sdk-for-go/services/storage/datalake/2018-06-17/storagedatalake"
const (
DefaultDNSSuffix = original.DefaultDNSSuffix
)
type BaseClient = original.BaseClient
type FilesystemClient = original.FilesystemClient
type PathGetPropertiesAction = original.PathGetPropertiesAction
const (
GetAccessControl PathGetPropertiesAction = original.GetAccessControl
)
type PathLeaseAction = original.PathLeaseAction
const (
Acquire PathLeaseAction = original.Acquire
Break PathLeaseAction = original.Break
Change PathLeaseAction = original.Change
Release PathLeaseAction = original.Release
Renew PathLeaseAction = original.Renew
)
type PathRenameMode = original.PathRenameMode
const (
Legacy PathRenameMode = original.Legacy
Posix PathRenameMode = original.Posix
)
type PathResourceType = original.PathResourceType
const (
Directory PathResourceType = original.Directory
File PathResourceType = original.File
)
type PathUpdateAction = original.PathUpdateAction
const (
Append PathUpdateAction = original.Append
Flush PathUpdateAction = original.Flush
SetAccessControl PathUpdateAction = original.SetAccessControl
SetProperties PathUpdateAction = original.SetProperties
)
type PathUpdateLeaseAction = original.PathUpdateLeaseAction
const (
PathUpdateLeaseActionRelease PathUpdateLeaseAction = original.PathUpdateLeaseActionRelease
PathUpdateLeaseActionRenew PathUpdateLeaseAction = original.PathUpdateLeaseActionRenew
)
type DataLakeStorageError = original.DataLakeStorageError
type DataLakeStorageErrorError = original.DataLakeStorageErrorError
type Filesystem = original.Filesystem
type FilesystemList = original.FilesystemList
type Path = original.Path
type PathList = original.PathList
type ReadCloser = original.ReadCloser
type PathClient = original.PathClient
func New(xMsVersion string, accountName string) BaseClient {
return original.New(xMsVersion, accountName)
}
func NewWithoutDefaults(xMsVersion string, accountName string, dNSSuffix string) BaseClient {
return original.NewWithoutDefaults(xMsVersion, accountName, dNSSuffix)
}
func NewFilesystemClient(xMsVersion string, accountName string) FilesystemClient {
return original.NewFilesystemClient(xMsVersion, accountName)
}
func PossiblePathGetPropertiesActionValues() []PathGetPropertiesAction {
return original.PossiblePathGetPropertiesActionValues()
}
func PossiblePathLeaseActionValues() []PathLeaseAction {
return original.PossiblePathLeaseActionValues()
}
func PossiblePathRenameModeValues() []PathRenameMode {
return original.PossiblePathRenameModeValues()
}
func PossiblePathResourceTypeValues() []PathResourceType {
return original.PossiblePathResourceTypeValues()
}
func PossiblePathUpdateActionValues() []PathUpdateAction {
return original.PossiblePathUpdateActionValues()
}
func PossiblePathUpdateLeaseActionValues() []PathUpdateLeaseAction {
return original.PossiblePathUpdateLeaseActionValues()
}
func NewPathClient(xMsVersion string, accountName string) PathClient {
return original.NewPathClient(xMsVersion, accountName)
}
func UserAgent() string {
return original.UserAgent() + " profiles/preview"
}
func Version() string {
return original.Version()
}

View file

@ -0,0 +1,121 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date"
"net/http"
)
// AddsServiceClient is the REST APIs for Azure Active Drectory Connect Health
type AddsServiceClient struct {
BaseClient
}
// NewAddsServiceClient creates an instance of the AddsServiceClient client.
func NewAddsServiceClient() AddsServiceClient {
return NewAddsServiceClientWithBaseURI(DefaultBaseURI)
}
// NewAddsServiceClientWithBaseURI creates an instance of the AddsServiceClient client.
func NewAddsServiceClientWithBaseURI(baseURI string) AddsServiceClient {
return AddsServiceClient{NewWithBaseURI(baseURI)}
}
// GetMetrics gets the server related metrics for a given metric and group combination.
// Parameters:
// serviceName - the name of the service.
// metricName - the metric name
// groupName - the group name
// groupKey - the group key
// fromDate - the start date.
// toDate - the end date.
func (client AddsServiceClient) GetMetrics(ctx context.Context, serviceName string, metricName string, groupName string, groupKey string, fromDate *date.Time, toDate *date.Time) (result MetricSets, err error) {
req, err := client.GetMetricsPreparer(ctx, serviceName, metricName, groupName, groupKey, fromDate, toDate)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceClient", "GetMetrics", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceClient", "GetMetrics", resp, "Failure sending request")
return
}
result, err = client.GetMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceClient", "GetMetrics", resp, "Failure responding to request")
}
return
}
// GetMetricsPreparer prepares the GetMetrics request.
func (client AddsServiceClient) GetMetricsPreparer(ctx context.Context, serviceName string, metricName string, groupName string, groupKey string, fromDate *date.Time, toDate *date.Time) (*http.Request, error) {
pathParameters := map[string]interface{}{
"groupName": autorest.Encode("path", groupName),
"metricName": autorest.Encode("path", metricName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(groupKey) > 0 {
queryParameters["groupKey"] = autorest.Encode("query", groupKey)
}
if fromDate != nil {
queryParameters["fromDate"] = autorest.Encode("query", *fromDate)
}
if toDate != nil {
queryParameters["toDate"] = autorest.Encode("query", *toDate)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/metrics/{metricName}/groups/{groupName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsSender sends the GetMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServiceClient) GetMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsResponder handles the response to the GetMetrics request. The method always
// closes the http.Response Body.
func (client AddsServiceClient) GetMetricsResponder(resp *http.Response) (result MetricSets, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -21,6 +21,7 @@ import (
"context" "context"
"github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/azure"
"github.com/satori/go.uuid"
"net/http" "net/http"
) )
@ -39,6 +40,145 @@ func NewAddsServiceMembersClientWithBaseURI(baseURI string) AddsServiceMembersCl
return AddsServiceMembersClient{NewWithBaseURI(baseURI)} return AddsServiceMembersClient{NewWithBaseURI(baseURI)}
} }
// Delete deletes a Active Directory Domain Controller server that has been onboarded to Azure Active Directory Connect
// Health Service.
// Parameters:
// serviceName - the name of the service.
// serviceMemberID - the server Id.
// confirm - indicates if the server will be permanently deleted or disabled. True indicates that the server
// will be permanently deleted and False indicates that the server will be marked disabled and then deleted
// after 30 days, if it is not re-registered.
func (client AddsServiceMembersClient) Delete(ctx context.Context, serviceName string, serviceMemberID uuid.UUID, confirm *bool) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, serviceName, serviceMemberID, confirm)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client AddsServiceMembersClient) DeletePreparer(ctx context.Context, serviceName string, serviceMemberID uuid.UUID, confirm *bool) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if confirm != nil {
queryParameters["confirm"] = autorest.Encode("query", *confirm)
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServiceMembersClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client AddsServiceMembersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Get gets the details of a server, for a given Active Directory Domain Controller service, that are onboarded to
// Azure Active Directory Connect Health Service.
// Parameters:
// serviceName - the name of the service.
// serviceMemberID - the server Id.
func (client AddsServiceMembersClient) Get(ctx context.Context, serviceName string, serviceMemberID uuid.UUID) (result ServiceMember, err error) {
req, err := client.GetPreparer(ctx, serviceName, serviceMemberID)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client AddsServiceMembersClient) GetPreparer(ctx context.Context, serviceName string, serviceMemberID uuid.UUID) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServiceMembersClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AddsServiceMembersClient) GetResponder(resp *http.Response) (result ServiceMember, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets the details of the Active Directory Domain servers, for a given Active Directory Domain Service, that are // List gets the details of the Active Directory Domain servers, for a given Active Directory Domain Service, that are
// onboarded to Azure Active Directory Connect Health. // onboarded to Azure Active Directory Connect Health.
// Parameters: // Parameters:
@ -135,3 +275,74 @@ func (client AddsServiceMembersClient) ListComplete(ctx context.Context, service
result.page, err = client.List(ctx, serviceName, filter) result.page, err = client.List(ctx, serviceName, filter)
return return
} }
// ListCredentials gets the credentials of the server which is needed by the agent to connect to Azure Active Directory
// Connect Health Service.
// Parameters:
// serviceName - the name of the service.
// serviceMemberID - the server Id.
// filter - the property filter to apply.
func (client AddsServiceMembersClient) ListCredentials(ctx context.Context, serviceName string, serviceMemberID uuid.UUID, filter string) (result Credentials, err error) {
req, err := client.ListCredentialsPreparer(ctx, serviceName, serviceMemberID, filter)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "ListCredentials", nil, "Failure preparing request")
return
}
resp, err := client.ListCredentialsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "ListCredentials", resp, "Failure sending request")
return
}
result, err = client.ListCredentialsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServiceMembersClient", "ListCredentials", resp, "Failure responding to request")
}
return
}
// ListCredentialsPreparer prepares the ListCredentials request.
func (client AddsServiceMembersClient) ListCredentialsPreparer(ctx context.Context, serviceName string, serviceMemberID uuid.UUID, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers/{serviceMemberId}/credentials", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ListCredentialsSender sends the ListCredentials request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServiceMembersClient) ListCredentialsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ListCredentialsResponder handles the response to the ListCredentials request. The method always
// closes the http.Response Body.
func (client AddsServiceMembersClient) ListCredentialsResponder(resp *http.Response) (result Credentials, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -448,71 +448,6 @@ func (client AddsServicesClient) GetMetricMetadataForGroupResponder(resp *http.R
return return
} }
// GetReplicationStatus gets Replication status for a given Active Directory Domain Service, that is onboarded to Azure
// Active Directory Connect Health.
// Parameters:
// serviceName - the name of the service.
func (client AddsServicesClient) GetReplicationStatus(ctx context.Context, serviceName string) (result ReplicationStatus, err error) {
req, err := client.GetReplicationStatusPreparer(ctx, serviceName)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "GetReplicationStatus", nil, "Failure preparing request")
return
}
resp, err := client.GetReplicationStatusSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "GetReplicationStatus", resp, "Failure sending request")
return
}
result, err = client.GetReplicationStatusResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "GetReplicationStatus", resp, "Failure responding to request")
}
return
}
// GetReplicationStatusPreparer prepares the GetReplicationStatus request.
func (client AddsServicesClient) GetReplicationStatusPreparer(ctx context.Context, serviceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetReplicationStatusSender sends the GetReplicationStatus request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesClient) GetReplicationStatusSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetReplicationStatusResponder handles the response to the GetReplicationStatus request. The method always
// closes the http.Response Body.
func (client AddsServicesClient) GetReplicationStatusResponder(resp *http.Response) (result ReplicationStatus, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets the details of Active Directory Domain Service, for a tenant, that are onboarded to Azure Active Directory // List gets the details of Active Directory Domain Service, for a tenant, that are onboarded to Azure Active Directory
// Connect Health. // Connect Health.
// Parameters: // Parameters:
@ -1019,6 +954,79 @@ func (client AddsServicesClient) ListPremiumServicesComplete(ctx context.Context
return return
} }
// ListReplicationDetails gets complete domain controller list along with replication details for a given Active
// Directory Domain Service, that is onboarded to Azure Active Directory Connect Health.
// Parameters:
// serviceName - the name of the service.
// filter - the server property filter to apply.
// withDetails - indicates if InboundReplicationNeighbor details are required or not.
func (client AddsServicesClient) ListReplicationDetails(ctx context.Context, serviceName string, filter string, withDetails *bool) (result ReplicationDetailsList, err error) {
req, err := client.ListReplicationDetailsPreparer(ctx, serviceName, filter, withDetails)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListReplicationDetails", nil, "Failure preparing request")
return
}
resp, err := client.ListReplicationDetailsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListReplicationDetails", resp, "Failure sending request")
return
}
result, err = client.ListReplicationDetailsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesClient", "ListReplicationDetails", resp, "Failure responding to request")
}
return
}
// ListReplicationDetailsPreparer prepares the ListReplicationDetails request.
func (client AddsServicesClient) ListReplicationDetailsPreparer(ctx context.Context, serviceName string, filter string, withDetails *bool) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
if withDetails != nil {
queryParameters["withDetails"] = autorest.Encode("query", *withDetails)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationdetails", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ListReplicationDetailsSender sends the ListReplicationDetails request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesClient) ListReplicationDetailsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ListReplicationDetailsResponder handles the response to the ListReplicationDetails request. The method always
// closes the http.Response Body.
func (client AddsServicesClient) ListReplicationDetailsResponder(resp *http.Response) (result ReplicationDetailsList, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// ListReplicationSummary gets complete domain controller list along with replication details for a given Active // ListReplicationSummary gets complete domain controller list along with replication details for a given Active
// Directory Domain Service, that is onboarded to Azure Active Directory Connect Health. // Directory Domain Service, that is onboarded to Azure Active Directory Connect Health.
// Parameters: // Parameters:

View file

@ -0,0 +1,106 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// AddsServicesReplicationStatusClient is the REST APIs for Azure Active Drectory Connect Health
type AddsServicesReplicationStatusClient struct {
BaseClient
}
// NewAddsServicesReplicationStatusClient creates an instance of the AddsServicesReplicationStatusClient client.
func NewAddsServicesReplicationStatusClient() AddsServicesReplicationStatusClient {
return NewAddsServicesReplicationStatusClientWithBaseURI(DefaultBaseURI)
}
// NewAddsServicesReplicationStatusClientWithBaseURI creates an instance of the AddsServicesReplicationStatusClient
// client.
func NewAddsServicesReplicationStatusClientWithBaseURI(baseURI string) AddsServicesReplicationStatusClient {
return AddsServicesReplicationStatusClient{NewWithBaseURI(baseURI)}
}
// Get gets Replication status for a given Active Directory Domain Service, that is onboarded to Azure Active Directory
// Connect Health.
// Parameters:
// serviceName - the name of the service.
func (client AddsServicesReplicationStatusClient) Get(ctx context.Context, serviceName string) (result ReplicationStatus, err error) {
req, err := client.GetPreparer(ctx, serviceName)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesReplicationStatusClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesReplicationStatusClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesReplicationStatusClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client AddsServicesReplicationStatusClient) GetPreparer(ctx context.Context, serviceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/replicationstatus", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesReplicationStatusClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AddsServicesReplicationStatusClient) GetResponder(resp *http.Response) (result ReplicationStatus, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -0,0 +1,213 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// AddsServicesServiceMembersClient is the REST APIs for Azure Active Drectory Connect Health
type AddsServicesServiceMembersClient struct {
BaseClient
}
// NewAddsServicesServiceMembersClient creates an instance of the AddsServicesServiceMembersClient client.
func NewAddsServicesServiceMembersClient() AddsServicesServiceMembersClient {
return NewAddsServicesServiceMembersClientWithBaseURI(DefaultBaseURI)
}
// NewAddsServicesServiceMembersClientWithBaseURI creates an instance of the AddsServicesServiceMembersClient client.
func NewAddsServicesServiceMembersClientWithBaseURI(baseURI string) AddsServicesServiceMembersClient {
return AddsServicesServiceMembersClient{NewWithBaseURI(baseURI)}
}
// Add onboards a server, for a given Active Directory Domain Controller service, to Azure Active Directory Connect
// Health Service.
// Parameters:
// serviceName - the name of the service under which the server is to be onboarded.
// serviceMember - the server object.
func (client AddsServicesServiceMembersClient) Add(ctx context.Context, serviceName string, serviceMember ServiceMember) (result ServiceMember, err error) {
req, err := client.AddPreparer(ctx, serviceName, serviceMember)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "Add", nil, "Failure preparing request")
return
}
resp, err := client.AddSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "Add", resp, "Failure sending request")
return
}
result, err = client.AddResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "Add", resp, "Failure responding to request")
}
return
}
// AddPreparer prepares the Add request.
func (client AddsServicesServiceMembersClient) AddPreparer(ctx context.Context, serviceName string, serviceMember ServiceMember) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers", pathParameters),
autorest.WithJSON(serviceMember),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// AddSender sends the Add request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesServiceMembersClient) AddSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// AddResponder handles the response to the Add request. The method always
// closes the http.Response Body.
func (client AddsServicesServiceMembersClient) AddResponder(resp *http.Response) (result ServiceMember, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets the details of the servers, for a given Active Directory Domain Controller service, that are onboarded to
// Azure Active Directory Connect Health Service.
// Parameters:
// serviceName - the name of the service.
// filter - the server property filter to apply.
// dimensionType - the server specific dimension.
// dimensionSignature - the value of the dimension.
func (client AddsServicesServiceMembersClient) List(ctx context.Context, serviceName string, filter string, dimensionType string, dimensionSignature string) (result ServiceMembersPage, err error) {
result.fn = client.listNextResults
req, err := client.ListPreparer(ctx, serviceName, filter, dimensionType, dimensionSignature)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "List", nil, "Failure preparing request")
return
}
resp, err := client.ListSender(req)
if err != nil {
result.sm.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "List", resp, "Failure sending request")
return
}
result.sm, err = client.ListResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "List", resp, "Failure responding to request")
}
return
}
// ListPreparer prepares the List request.
func (client AddsServicesServiceMembersClient) ListPreparer(ctx context.Context, serviceName string, filter string, dimensionType string, dimensionSignature string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
if len(dimensionType) > 0 {
queryParameters["dimensionType"] = autorest.Encode("query", dimensionType)
}
if len(dimensionSignature) > 0 {
queryParameters["dimensionSignature"] = autorest.Encode("query", dimensionSignature)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/servicemembers", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesServiceMembersClient) ListSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ListResponder handles the response to the List request. The method always
// closes the http.Response Body.
func (client AddsServicesServiceMembersClient) ListResponder(resp *http.Response) (result ServiceMembers, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// listNextResults retrieves the next set of results, if any.
func (client AddsServicesServiceMembersClient) listNextResults(lastResults ServiceMembers) (result ServiceMembers, err error) {
req, err := lastResults.serviceMembersPreparer()
if err != nil {
return result, autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "listNextResults", nil, "Failure preparing next results request")
}
if req == nil {
return
}
resp, err := client.ListSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
return result, autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "listNextResults", resp, "Failure sending next results request")
}
result, err = client.ListResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesServiceMembersClient", "listNextResults", resp, "Failure responding to next results request")
}
return
}
// ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client AddsServicesServiceMembersClient) ListComplete(ctx context.Context, serviceName string, filter string, dimensionType string, dimensionSignature string) (result ServiceMembersIterator, err error) {
result.page, err = client.List(ctx, serviceName, filter, dimensionType, dimensionSignature)
return
}

View file

@ -0,0 +1,239 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// AddsServicesUserPreferenceClient is the REST APIs for Azure Active Drectory Connect Health
type AddsServicesUserPreferenceClient struct {
BaseClient
}
// NewAddsServicesUserPreferenceClient creates an instance of the AddsServicesUserPreferenceClient client.
func NewAddsServicesUserPreferenceClient() AddsServicesUserPreferenceClient {
return NewAddsServicesUserPreferenceClientWithBaseURI(DefaultBaseURI)
}
// NewAddsServicesUserPreferenceClientWithBaseURI creates an instance of the AddsServicesUserPreferenceClient client.
func NewAddsServicesUserPreferenceClientWithBaseURI(baseURI string) AddsServicesUserPreferenceClient {
return AddsServicesUserPreferenceClient{NewWithBaseURI(baseURI)}
}
// Add adds the user preferences for a given feature.
// Parameters:
// serviceName - the name of the service.
// featureName - the name of the feature.
// setting - the user preference setting.
func (client AddsServicesUserPreferenceClient) Add(ctx context.Context, serviceName string, featureName string, setting UserPreference) (result autorest.Response, err error) {
req, err := client.AddPreparer(ctx, serviceName, featureName, setting)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Add", nil, "Failure preparing request")
return
}
resp, err := client.AddSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Add", resp, "Failure sending request")
return
}
result, err = client.AddResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Add", resp, "Failure responding to request")
}
return
}
// AddPreparer prepares the Add request.
func (client AddsServicesUserPreferenceClient) AddPreparer(ctx context.Context, serviceName string, featureName string, setting UserPreference) (*http.Request, error) {
pathParameters := map[string]interface{}{
"featureName": autorest.Encode("path", featureName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference", pathParameters),
autorest.WithJSON(setting),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// AddSender sends the Add request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesUserPreferenceClient) AddSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// AddResponder handles the response to the Add request. The method always
// closes the http.Response Body.
func (client AddsServicesUserPreferenceClient) AddResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Delete deletes the user preferences for a given feature.
// Parameters:
// serviceName - the name of the service.
// featureName - the name of the feature.
func (client AddsServicesUserPreferenceClient) Delete(ctx context.Context, serviceName string, featureName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, serviceName, featureName)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client AddsServicesUserPreferenceClient) DeletePreparer(ctx context.Context, serviceName string, featureName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"featureName": autorest.Encode("path", featureName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesUserPreferenceClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client AddsServicesUserPreferenceClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Get gets the user preferences for a given feature.
// Parameters:
// serviceName - the name of the service.
// featureName - the name of the feature.
func (client AddsServicesUserPreferenceClient) Get(ctx context.Context, serviceName string, featureName string) (result UserPreference, err error) {
req, err := client.GetPreparer(ctx, serviceName, featureName)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.AddsServicesUserPreferenceClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client AddsServicesUserPreferenceClient) GetPreparer(ctx context.Context, serviceName string, featureName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"featureName": autorest.Encode("path", featureName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client AddsServicesUserPreferenceClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client AddsServicesUserPreferenceClient) GetResponder(resp *http.Response) (result UserPreference, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -2110,6 +2110,19 @@ type PasswordManagementSettings struct {
UnlockAccount *bool `json:"unlockAccount,omitempty"` UnlockAccount *bool `json:"unlockAccount,omitempty"`
} }
// ReplicationDetailsList the list of replication details.
type ReplicationDetailsList struct {
autorest.Response `json:"-"`
// Value - The value returned by the operation.
Value *[]ReplicationSummary `json:"value,omitempty"`
// TotalCount - The total count of replication detail elements.
TotalCount *int32 `json:"totalCount,omitempty"`
// ContinuationToken - The continuation token for paginated calls.
ContinuationToken *string `json:"continuationToken,omitempty"`
// NextLink - The link used to get the next page of operations.
NextLink *string `json:"nextLink,omitempty"`
}
// ReplicationStatus replication summary for a domain controller. // ReplicationStatus replication summary for a domain controller.
type ReplicationStatus struct { type ReplicationStatus struct {
autorest.Response `json:"-"` autorest.Response `json:"-"`
@ -2613,6 +2626,13 @@ type TenantOnboardingDetails struct {
OnboardingDisplayURL *string `json:"onboardingDisplayUrl,omitempty"` OnboardingDisplayURL *string `json:"onboardingDisplayUrl,omitempty"`
} }
// UserPreference the user preference for a given feature.
type UserPreference struct {
autorest.Response `json:"-"`
// MetricNames - The name of the metric.
MetricNames *[]string `json:"metricNames,omitempty"`
}
// ValueDelta the value of the delta. // ValueDelta the value of the delta.
type ValueDelta struct { type ValueDelta struct {
// OperationType - The operation type. Possible values include: 'ValueDeltaOperationTypeUndefined', 'ValueDeltaOperationTypeAdd', 'ValueDeltaOperationTypeUpdate', 'ValueDeltaOperationTypeDelete' // OperationType - The operation type. Possible values include: 'ValueDeltaOperationTypeUndefined', 'ValueDeltaOperationTypeAdd', 'ValueDeltaOperationTypeUpdate', 'ValueDeltaOperationTypeDelete'

View file

@ -0,0 +1,98 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// ReportsClient is the REST APIs for Azure Active Drectory Connect Health
type ReportsClient struct {
BaseClient
}
// NewReportsClient creates an instance of the ReportsClient client.
func NewReportsClient() ReportsClient {
return NewReportsClientWithBaseURI(DefaultBaseURI)
}
// NewReportsClientWithBaseURI creates an instance of the ReportsClient client.
func NewReportsClientWithBaseURI(baseURI string) ReportsClient {
return ReportsClient{NewWithBaseURI(baseURI)}
}
// GetDevOps checks if the user is enabled for Dev Ops access.
func (client ReportsClient) GetDevOps(ctx context.Context) (result Result, err error) {
req, err := client.GetDevOpsPreparer(ctx)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ReportsClient", "GetDevOps", nil, "Failure preparing request")
return
}
resp, err := client.GetDevOpsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ReportsClient", "GetDevOps", resp, "Failure sending request")
return
}
result, err = client.GetDevOpsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ReportsClient", "GetDevOps", resp, "Failure responding to request")
}
return
}
// GetDevOpsPreparer prepares the GetDevOps request.
func (client ReportsClient) GetDevOpsPreparer(ctx context.Context) (*http.Request, error) {
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPath("/providers/Microsoft.ADHybridHealthService/reports/DevOps/IsDevOps"),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetDevOpsSender sends the GetDevOps request. The method will close the
// http.Response Body if it receives an error.
func (client ReportsClient) GetDevOpsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetDevOpsResponder handles the response to the GetDevOps request. The method always
// closes the http.Response Body.
func (client ReportsClient) GetDevOpsResponder(resp *http.Response) (result Result, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -0,0 +1,121 @@
package adhybridhealthservice
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date"
"net/http"
)
// ServiceClient is the REST APIs for Azure Active Drectory Connect Health
type ServiceClient struct {
BaseClient
}
// NewServiceClient creates an instance of the ServiceClient client.
func NewServiceClient() ServiceClient {
return NewServiceClientWithBaseURI(DefaultBaseURI)
}
// NewServiceClientWithBaseURI creates an instance of the ServiceClient client.
func NewServiceClientWithBaseURI(baseURI string) ServiceClient {
return ServiceClient{NewWithBaseURI(baseURI)}
}
// GetMetrics gets the server related metrics for a given metric and group combination.
// Parameters:
// serviceName - the name of the service.
// metricName - the metric name
// groupName - the group name
// groupKey - the group key
// fromDate - the start date.
// toDate - the end date.
func (client ServiceClient) GetMetrics(ctx context.Context, serviceName string, metricName string, groupName string, groupKey string, fromDate *date.Time, toDate *date.Time) (result MetricSets, err error) {
req, err := client.GetMetricsPreparer(ctx, serviceName, metricName, groupName, groupKey, fromDate, toDate)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceClient", "GetMetrics", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceClient", "GetMetrics", resp, "Failure sending request")
return
}
result, err = client.GetMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceClient", "GetMetrics", resp, "Failure responding to request")
}
return
}
// GetMetricsPreparer prepares the GetMetrics request.
func (client ServiceClient) GetMetricsPreparer(ctx context.Context, serviceName string, metricName string, groupName string, groupKey string, fromDate *date.Time, toDate *date.Time) (*http.Request, error) {
pathParameters := map[string]interface{}{
"groupName": autorest.Encode("path", groupName),
"metricName": autorest.Encode("path", metricName),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(groupKey) > 0 {
queryParameters["groupKey"] = autorest.Encode("query", groupKey)
}
if fromDate != nil {
queryParameters["fromDate"] = autorest.Encode("query", *fromDate)
}
if toDate != nil {
queryParameters["toDate"] = autorest.Encode("query", *toDate)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/services/{serviceName}/metrics/{metricName}/groups/{groupName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsSender sends the GetMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client ServiceClient) GetMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsResponder handles the response to the GetMetrics request. The method always
// closes the http.Response Body.
func (client ServiceClient) GetMetricsResponder(resp *http.Response) (result MetricSets, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -311,6 +311,88 @@ func (client ServiceMembersClient) GetResponder(resp *http.Response) (result Ser
return return
} }
// GetMetrics gets the server related metrics for a given metric and group combination.
// Parameters:
// serviceName - the name of the service.
// metricName - the metric name
// groupName - the group name
// serviceMemberID - the server id.
// groupKey - the group key
// fromDate - the start date.
// toDate - the end date.
func (client ServiceMembersClient) GetMetrics(ctx context.Context, serviceName string, metricName string, groupName string, serviceMemberID uuid.UUID, groupKey string, fromDate *date.Time, toDate *date.Time) (result MetricSets, err error) {
req, err := client.GetMetricsPreparer(ctx, serviceName, metricName, groupName, serviceMemberID, groupKey, fromDate, toDate)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "GetMetrics", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "GetMetrics", resp, "Failure sending request")
return
}
result, err = client.GetMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "GetMetrics", resp, "Failure responding to request")
}
return
}
// GetMetricsPreparer prepares the GetMetrics request.
func (client ServiceMembersClient) GetMetricsPreparer(ctx context.Context, serviceName string, metricName string, groupName string, serviceMemberID uuid.UUID, groupKey string, fromDate *date.Time, toDate *date.Time) (*http.Request, error) {
pathParameters := map[string]interface{}{
"groupName": autorest.Encode("path", groupName),
"metricName": autorest.Encode("path", metricName),
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(groupKey) > 0 {
queryParameters["groupKey"] = autorest.Encode("query", groupKey)
}
if fromDate != nil {
queryParameters["fromDate"] = autorest.Encode("query", *fromDate)
}
if toDate != nil {
queryParameters["toDate"] = autorest.Encode("query", *toDate)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/metrics/{metricName}/groups/{groupName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsSender sends the GetMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client ServiceMembersClient) GetMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsResponder handles the response to the GetMetrics request. The method always
// closes the http.Response Body.
func (client ServiceMembersClient) GetMetricsResponder(resp *http.Response) (result MetricSets, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetServiceConfiguration gets the service configuration. // GetServiceConfiguration gets the service configuration.
// Parameters: // Parameters:
// serviceName - the name of the service. // serviceName - the name of the service.
@ -954,85 +1036,3 @@ func (client ServiceMembersClient) ListGlobalConfigurationResponder(resp *http.R
result.Response = autorest.Response{Response: resp} result.Response = autorest.Response{Response: resp}
return return
} }
// ListMetrics gets the server related metrics for a given metric and group combination.
// Parameters:
// serviceName - the name of the service.
// metricName - the metric name
// groupName - the group name
// serviceMemberID - the server id.
// groupKey - the group key
// fromDate - the start date.
// toDate - the end date.
func (client ServiceMembersClient) ListMetrics(ctx context.Context, serviceName string, metricName string, groupName string, serviceMemberID uuid.UUID, groupKey string, fromDate *date.Time, toDate *date.Time) (result MetricSets, err error) {
req, err := client.ListMetricsPreparer(ctx, serviceName, metricName, groupName, serviceMemberID, groupKey, fromDate, toDate)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListMetrics", nil, "Failure preparing request")
return
}
resp, err := client.ListMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListMetrics", resp, "Failure sending request")
return
}
result, err = client.ListMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "adhybridhealthservice.ServiceMembersClient", "ListMetrics", resp, "Failure responding to request")
}
return
}
// ListMetricsPreparer prepares the ListMetrics request.
func (client ServiceMembersClient) ListMetricsPreparer(ctx context.Context, serviceName string, metricName string, groupName string, serviceMemberID uuid.UUID, groupKey string, fromDate *date.Time, toDate *date.Time) (*http.Request, error) {
pathParameters := map[string]interface{}{
"groupName": autorest.Encode("path", groupName),
"metricName": autorest.Encode("path", metricName),
"serviceMemberId": autorest.Encode("path", serviceMemberID),
"serviceName": autorest.Encode("path", serviceName),
}
const APIVersion = "2014-01-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
if len(groupKey) > 0 {
queryParameters["groupKey"] = autorest.Encode("query", groupKey)
}
if fromDate != nil {
queryParameters["fromDate"] = autorest.Encode("query", *fromDate)
}
if toDate != nil {
queryParameters["toDate"] = autorest.Encode("query", *toDate)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/providers/Microsoft.ADHybridHealthService/services/{serviceName}/servicemembers/{serviceMemberId}/metrics/{metricName}/groups/{groupName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ListMetricsSender sends the ListMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client ServiceMembersClient) ListMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ListMetricsResponder handles the response to the ListMetrics request. The method always
// closes the http.Response Body.
func (client ServiceMembersClient) ListMetricsResponder(resp *http.Response) (result MetricSets, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -20,7 +20,6 @@ package advisor
import ( import (
"encoding/json" "encoding/json"
"github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date" "github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to" "github.com/Azure/go-autorest/autorest/to"
"github.com/satori/go.uuid" "github.com/satori/go.uuid"
@ -410,29 +409,6 @@ func (rp RecommendationProperties) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap) return json.Marshal(objectMap)
} }
// RecommendationsGetGenerateStatusFuture an abstraction for monitoring and retrieving the results of a
// long-running operation.
type RecommendationsGetGenerateStatusFuture struct {
azure.Future
}
// Result returns the result of the asynchronous operation.
// If the operation has not completed it will return an error.
func (future *RecommendationsGetGenerateStatusFuture) Result(client RecommendationsClient) (ar autorest.Response, err error) {
var done bool
done, err = future.Done(client)
if err != nil {
err = autorest.NewErrorWithError(err, "advisor.RecommendationsGetGenerateStatusFuture", "Result", future.Response(), "Polling failure")
return
}
if !done {
err = azure.NewAsyncOpIncompleteError("advisor.RecommendationsGetGenerateStatusFuture")
return
}
ar.Response = future.Response()
return
}
// Resource an Azure resource. // Resource an Azure resource.
type Resource struct { type Resource struct {
// ID - The resource ID. // ID - The resource ID.

View file

@ -175,19 +175,25 @@ func (client RecommendationsClient) GetResponder(resp *http.Response) (result Re
// Parameters: // Parameters:
// operationID - the operation ID, which can be found from the Location field in the generate recommendation // operationID - the operation ID, which can be found from the Location field in the generate recommendation
// response header. // response header.
func (client RecommendationsClient) GetGenerateStatus(ctx context.Context, operationID uuid.UUID) (result RecommendationsGetGenerateStatusFuture, err error) { func (client RecommendationsClient) GetGenerateStatus(ctx context.Context, operationID uuid.UUID) (result autorest.Response, err error) {
req, err := client.GetGenerateStatusPreparer(ctx, operationID) req, err := client.GetGenerateStatusPreparer(ctx, operationID)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", nil, "Failure preparing request")
return return
} }
result, err = client.GetGenerateStatusSender(req) resp, err := client.GetGenerateStatusSender(req)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", result.Response(), "Failure sending request") result.Response = resp
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", resp, "Failure sending request")
return return
} }
result, err = client.GetGenerateStatusResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", resp, "Failure responding to request")
}
return return
} }
@ -213,19 +219,9 @@ func (client RecommendationsClient) GetGenerateStatusPreparer(ctx context.Contex
// GetGenerateStatusSender sends the GetGenerateStatus request. The method will close the // GetGenerateStatusSender sends the GetGenerateStatus request. The method will close the
// http.Response Body if it receives an error. // http.Response Body if it receives an error.
func (client RecommendationsClient) GetGenerateStatusSender(req *http.Request) (future RecommendationsGetGenerateStatusFuture, err error) { func (client RecommendationsClient) GetGenerateStatusSender(req *http.Request) (*http.Response, error) {
var resp *http.Response return autorest.SendWithSender(client, req,
resp, err = autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client)) azure.DoRetryWithRegistration(client.Client))
if err != nil {
return
}
err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent))
if err != nil {
return
}
future.Future, err = azure.NewFutureFromResponse(resp)
return
} }
// GetGenerateStatusResponder handles the response to the GetGenerateStatus request. The method always // GetGenerateStatusResponder handles the response to the GetGenerateStatus request. The method always

View file

@ -24,19 +24,19 @@ import (
"net/http" "net/http"
) )
// AnalyticsItemClient is the composite Swagger for Application Insights Management Client // AnalyticsItemsClient is the composite Swagger for Application Insights Management Client
type AnalyticsItemClient struct { type AnalyticsItemsClient struct {
BaseClient BaseClient
} }
// NewAnalyticsItemClient creates an instance of the AnalyticsItemClient client. // NewAnalyticsItemsClient creates an instance of the AnalyticsItemsClient client.
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient { func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
return NewAnalyticsItemClientWithBaseURI(DefaultBaseURI, subscriptionID) return NewAnalyticsItemsClientWithBaseURI(DefaultBaseURI, subscriptionID)
} }
// NewAnalyticsItemClientWithBaseURI creates an instance of the AnalyticsItemClient client. // NewAnalyticsItemsClientWithBaseURI creates an instance of the AnalyticsItemsClient client.
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient { func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
return AnalyticsItemClient{NewWithBaseURI(baseURI, subscriptionID)} return AnalyticsItemsClient{NewWithBaseURI(baseURI, subscriptionID)}
} }
// Delete deletes a specific Analytics Items defined within an Application Insights component. // Delete deletes a specific Analytics Items defined within an Application Insights component.
@ -47,30 +47,30 @@ func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) An
// users with access to the Application Insights component. // users with access to the Application Insights component.
// ID - the Id of a specific item defined in the Application Insights component // ID - the Id of a specific item defined in the Application Insights component
// name - the name of a specific item defined in the Application Insights component // name - the name of a specific item defined in the Application Insights component
func (client AnalyticsItemClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (result autorest.Response, err error) { func (client AnalyticsItemsClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name) req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Delete", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Delete", nil, "Failure preparing request")
return return
} }
resp, err := client.DeleteSender(req) resp, err := client.DeleteSender(req)
if err != nil { if err != nil {
result.Response = resp result.Response = resp
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Delete", resp, "Failure sending request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Delete", resp, "Failure sending request")
return return
} }
result, err = client.DeleteResponder(resp) result, err = client.DeleteResponder(resp)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Delete", resp, "Failure responding to request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Delete", resp, "Failure responding to request")
} }
return return
} }
// DeletePreparer prepares the Delete request. // DeletePreparer prepares the Delete request.
func (client AnalyticsItemClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (*http.Request, error) { func (client AnalyticsItemsClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{ pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName), "resourceName": autorest.Encode("path", resourceName),
@ -99,14 +99,14 @@ func (client AnalyticsItemClient) DeletePreparer(ctx context.Context, resourceGr
// DeleteSender sends the Delete request. The method will close the // DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error. // http.Response Body if it receives an error.
func (client AnalyticsItemClient) DeleteSender(req *http.Request) (*http.Response, error) { func (client AnalyticsItemsClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req, return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client)) azure.DoRetryWithRegistration(client.Client))
} }
// DeleteResponder handles the response to the Delete request. The method always // DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body. // closes the http.Response Body.
func (client AnalyticsItemClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { func (client AnalyticsItemsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),
@ -124,30 +124,30 @@ func (client AnalyticsItemClient) DeleteResponder(resp *http.Response) (result a
// users with access to the Application Insights component. // users with access to the Application Insights component.
// ID - the Id of a specific item defined in the Application Insights component // ID - the Id of a specific item defined in the Application Insights component
// name - the name of a specific item defined in the Application Insights component // name - the name of a specific item defined in the Application Insights component
func (client AnalyticsItemClient) Get(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (result ApplicationInsightsComponentAnalyticsItem, err error) { func (client AnalyticsItemsClient) Get(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (result ApplicationInsightsComponentAnalyticsItem, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name) req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, scopePath, ID, name)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Get", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Get", nil, "Failure preparing request")
return return
} }
resp, err := client.GetSender(req) resp, err := client.GetSender(req)
if err != nil { if err != nil {
result.Response = autorest.Response{Response: resp} result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Get", resp, "Failure sending request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Get", resp, "Failure sending request")
return return
} }
result, err = client.GetResponder(resp) result, err = client.GetResponder(resp)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Get", resp, "Failure responding to request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Get", resp, "Failure responding to request")
} }
return return
} }
// GetPreparer prepares the Get request. // GetPreparer prepares the Get request.
func (client AnalyticsItemClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (*http.Request, error) { func (client AnalyticsItemsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, ID string, name string) (*http.Request, error) {
pathParameters := map[string]interface{}{ pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName), "resourceName": autorest.Encode("path", resourceName),
@ -176,14 +176,14 @@ func (client AnalyticsItemClient) GetPreparer(ctx context.Context, resourceGroup
// GetSender sends the Get request. The method will close the // GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error. // http.Response Body if it receives an error.
func (client AnalyticsItemClient) GetSender(req *http.Request) (*http.Response, error) { func (client AnalyticsItemsClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req, return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client)) azure.DoRetryWithRegistration(client.Client))
} }
// GetResponder handles the response to the Get request. The method always // GetResponder handles the response to the Get request. The method always
// closes the http.Response Body. // closes the http.Response Body.
func (client AnalyticsItemClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponentAnalyticsItem, err error) { func (client AnalyticsItemsClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponentAnalyticsItem, err error) {
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),
@ -205,30 +205,30 @@ func (client AnalyticsItemClient) GetResponder(resp *http.Response) (result Appl
// typeParameter - enum indicating the type of the Analytics item. // typeParameter - enum indicating the type of the Analytics item.
// includeContent - flag indicating whether or not to return the content of each applicable item. If false, // includeContent - flag indicating whether or not to return the content of each applicable item. If false,
// only return the item information. // only return the item information.
func (client AnalyticsItemClient) List(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, scope ItemScope, typeParameter ItemTypeParameter, includeContent *bool) (result ListApplicationInsightsComponentAnalyticsItem, err error) { func (client AnalyticsItemsClient) List(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, scope ItemScope, typeParameter ItemTypeParameter, includeContent *bool) (result ListApplicationInsightsComponentAnalyticsItem, err error) {
req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, scopePath, scope, typeParameter, includeContent) req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, scopePath, scope, typeParameter, includeContent)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "List", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "List", nil, "Failure preparing request")
return return
} }
resp, err := client.ListSender(req) resp, err := client.ListSender(req)
if err != nil { if err != nil {
result.Response = autorest.Response{Response: resp} result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "List", resp, "Failure sending request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "List", resp, "Failure sending request")
return return
} }
result, err = client.ListResponder(resp) result, err = client.ListResponder(resp)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "List", resp, "Failure responding to request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "List", resp, "Failure responding to request")
} }
return return
} }
// ListPreparer prepares the List request. // ListPreparer prepares the List request.
func (client AnalyticsItemClient) ListPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, scope ItemScope, typeParameter ItemTypeParameter, includeContent *bool) (*http.Request, error) { func (client AnalyticsItemsClient) ListPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, scope ItemScope, typeParameter ItemTypeParameter, includeContent *bool) (*http.Request, error) {
pathParameters := map[string]interface{}{ pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName), "resourceName": autorest.Encode("path", resourceName),
@ -264,14 +264,14 @@ func (client AnalyticsItemClient) ListPreparer(ctx context.Context, resourceGrou
// ListSender sends the List request. The method will close the // ListSender sends the List request. The method will close the
// http.Response Body if it receives an error. // http.Response Body if it receives an error.
func (client AnalyticsItemClient) ListSender(req *http.Request) (*http.Response, error) { func (client AnalyticsItemsClient) ListSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req, return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client)) azure.DoRetryWithRegistration(client.Client))
} }
// ListResponder handles the response to the List request. The method always // ListResponder handles the response to the List request. The method always
// closes the http.Response Body. // closes the http.Response Body.
func (client AnalyticsItemClient) ListResponder(resp *http.Response) (result ListApplicationInsightsComponentAnalyticsItem, err error) { func (client AnalyticsItemsClient) ListResponder(resp *http.Response) (result ListApplicationInsightsComponentAnalyticsItem, err error) {
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),
@ -292,30 +292,30 @@ func (client AnalyticsItemClient) ListResponder(resp *http.Response) (result Lis
// Insights component. // Insights component.
// overrideItem - flag indicating whether or not to force save an item. This allows overriding an item if it // overrideItem - flag indicating whether or not to force save an item. This allows overriding an item if it
// already exists. // already exists.
func (client AnalyticsItemClient) Put(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, itemProperties ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (result ApplicationInsightsComponentAnalyticsItem, err error) { func (client AnalyticsItemsClient) Put(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, itemProperties ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (result ApplicationInsightsComponentAnalyticsItem, err error) {
req, err := client.PutPreparer(ctx, resourceGroupName, resourceName, scopePath, itemProperties, overrideItem) req, err := client.PutPreparer(ctx, resourceGroupName, resourceName, scopePath, itemProperties, overrideItem)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Put", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Put", nil, "Failure preparing request")
return return
} }
resp, err := client.PutSender(req) resp, err := client.PutSender(req)
if err != nil { if err != nil {
result.Response = autorest.Response{Response: resp} result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Put", resp, "Failure sending request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Put", resp, "Failure sending request")
return return
} }
result, err = client.PutResponder(resp) result, err = client.PutResponder(resp)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnalyticsItemClient", "Put", resp, "Failure responding to request") err = autorest.NewErrorWithError(err, "insights.AnalyticsItemsClient", "Put", resp, "Failure responding to request")
} }
return return
} }
// PutPreparer prepares the Put request. // PutPreparer prepares the Put request.
func (client AnalyticsItemClient) PutPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, itemProperties ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (*http.Request, error) { func (client AnalyticsItemsClient) PutPreparer(ctx context.Context, resourceGroupName string, resourceName string, scopePath ItemScopePath, itemProperties ApplicationInsightsComponentAnalyticsItem, overrideItem *bool) (*http.Request, error) {
pathParameters := map[string]interface{}{ pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName), "resourceName": autorest.Encode("path", resourceName),
@ -343,14 +343,14 @@ func (client AnalyticsItemClient) PutPreparer(ctx context.Context, resourceGroup
// PutSender sends the Put request. The method will close the // PutSender sends the Put request. The method will close the
// http.Response Body if it receives an error. // http.Response Body if it receives an error.
func (client AnalyticsItemClient) PutSender(req *http.Request) (*http.Response, error) { func (client AnalyticsItemsClient) PutSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req, return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client)) azure.DoRetryWithRegistration(client.Client))
} }
// PutResponder handles the response to the Put request. The method always // PutResponder handles the response to the Put request. The method always
// closes the http.Response Body. // closes the http.Response Body.
func (client AnalyticsItemClient) PutResponder(resp *http.Response) (result ApplicationInsightsComponentAnalyticsItem, err error) { func (client AnalyticsItemsClient) PutResponder(resp *http.Response) (result ApplicationInsightsComponentAnalyticsItem, err error) {
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),

View file

@ -254,7 +254,7 @@ func (client AnnotationsClient) GetResponder(resp *http.Response) (result ListAn
// resourceName - the name of the Application Insights component resource. // resourceName - the name of the Application Insights component resource.
// start - the start time to query from for annotations, cannot be older than 90 days from current date. // start - the start time to query from for annotations, cannot be older than 90 days from current date.
// end - the end time to query for annotations. // end - the end time to query for annotations.
func (client AnnotationsClient) List(ctx context.Context, resourceGroupName string, resourceName string, start string, end string) (result ListAnnotation, err error) { func (client AnnotationsClient) List(ctx context.Context, resourceGroupName string, resourceName string, start string, end string) (result AnnotationsListResult, err error) {
req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, start, end) req, err := client.ListPreparer(ctx, resourceGroupName, resourceName, start, end)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "List", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "insights.AnnotationsClient", "List", nil, "Failure preparing request")
@ -308,12 +308,12 @@ func (client AnnotationsClient) ListSender(req *http.Request) (*http.Response, e
// ListResponder handles the response to the List request. The method always // ListResponder handles the response to the List request. The method always
// closes the http.Response Body. // closes the http.Response Body.
func (client AnnotationsClient) ListResponder(resp *http.Response) (result ListAnnotation, err error) { func (client AnnotationsClient) ListResponder(resp *http.Response) (result AnnotationsListResult, err error) {
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK), azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value), autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing()) autorest.ByClosing())
result.Response = autorest.Response{Response: resp} result.Response = autorest.Response{Response: resp}
return return

View file

@ -250,6 +250,75 @@ func (client ComponentsClient) GetResponder(resp *http.Response) (result Applica
return return
} }
// GetPurgeStatus get status for an ongoing purge operation.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// purgeID - in a purge status request, this is the Id of the operation the status of which is returned.
func (client ComponentsClient) GetPurgeStatus(ctx context.Context, resourceGroupName string, resourceName string, purgeID string) (result ComponentPurgeStatusResponse, err error) {
req, err := client.GetPurgeStatusPreparer(ctx, resourceGroupName, resourceName, purgeID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "GetPurgeStatus", nil, "Failure preparing request")
return
}
resp, err := client.GetPurgeStatusSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "GetPurgeStatus", resp, "Failure sending request")
return
}
result, err = client.GetPurgeStatusResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "GetPurgeStatus", resp, "Failure responding to request")
}
return
}
// GetPurgeStatusPreparer prepares the GetPurgeStatus request.
func (client ComponentsClient) GetPurgeStatusPreparer(ctx context.Context, resourceGroupName string, resourceName string, purgeID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"purgeId": autorest.Encode("path", purgeID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetPurgeStatusSender sends the GetPurgeStatus request. The method will close the
// http.Response Body if it receives an error.
func (client ComponentsClient) GetPurgeStatusSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetPurgeStatusResponder handles the response to the GetPurgeStatus request. The method always
// closes the http.Response Body.
func (client ComponentsClient) GetPurgeStatusResponder(resp *http.Response) (result ComponentPurgeStatusResponse, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets a list of all Application Insights components within a subscription. // List gets a list of all Application Insights components within a subscription.
func (client ComponentsClient) List(ctx context.Context) (result ApplicationInsightsComponentListResultPage, err error) { func (client ComponentsClient) List(ctx context.Context) (result ApplicationInsightsComponentListResultPage, err error) {
result.fn = client.listNextResults result.fn = client.listNextResults
@ -438,7 +507,7 @@ func (client ComponentsClient) ListByResourceGroupComplete(ctx context.Context,
// resourceGroupName - the name of the resource group. // resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource. // resourceName - the name of the Application Insights component resource.
// body - describes the body of a request to purge data in a single table of an Application Insights component // body - describes the body of a request to purge data in a single table of an Application Insights component
func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName string, resourceName string, body ComponentPurgeBody) (result ComponentsPurgeFuture, err error) { func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName string, resourceName string, body ComponentPurgeBody) (result ComponentPurgeResponse, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: body, {TargetValue: body,
Constraints: []validation.Constraint{{Target: "body.Table", Name: validation.Null, Rule: true, Chain: nil}, Constraints: []validation.Constraint{{Target: "body.Table", Name: validation.Null, Rule: true, Chain: nil},
@ -452,12 +521,18 @@ func (client ComponentsClient) Purge(ctx context.Context, resourceGroupName stri
return return
} }
result, err = client.PurgeSender(req) resp, err := client.PurgeSender(req)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Purge", result.Response(), "Failure sending request") result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Purge", resp, "Failure sending request")
return return
} }
result, err = client.PurgeResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Purge", resp, "Failure responding to request")
}
return return
} }
@ -486,24 +561,14 @@ func (client ComponentsClient) PurgePreparer(ctx context.Context, resourceGroupN
// PurgeSender sends the Purge request. The method will close the // PurgeSender sends the Purge request. The method will close the
// http.Response Body if it receives an error. // http.Response Body if it receives an error.
func (client ComponentsClient) PurgeSender(req *http.Request) (future ComponentsPurgeFuture, err error) { func (client ComponentsClient) PurgeSender(req *http.Request) (*http.Response, error) {
var resp *http.Response return autorest.SendWithSender(client, req,
resp, err = autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client)) azure.DoRetryWithRegistration(client.Client))
if err != nil {
return
}
err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted))
if err != nil {
return
}
future.Future, err = azure.NewFutureFromResponse(resp)
return
} }
// PurgeResponder handles the response to the Purge request. The method always // PurgeResponder handles the response to the Purge request. The method always
// closes the http.Response Body. // closes the http.Response Body.
func (client ComponentsClient) PurgeResponder(resp *http.Response) (result SetObject, err error) { func (client ComponentsClient) PurgeResponder(resp *http.Response) (result ComponentPurgeResponse, err error) {
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),

View file

@ -1,322 +0,0 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// FavoriteClient is the composite Swagger for Application Insights Management Client
type FavoriteClient struct {
BaseClient
}
// NewFavoriteClient creates an instance of the FavoriteClient client.
func NewFavoriteClient(subscriptionID string) FavoriteClient {
return NewFavoriteClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewFavoriteClientWithBaseURI creates an instance of the FavoriteClient client.
func NewFavoriteClientWithBaseURI(baseURI string, subscriptionID string) FavoriteClient {
return FavoriteClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Add adds a new favorites to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
// favoriteProperties - properties that need to be specified to create a new favorite and add it to an
// Application Insights component.
func (client FavoriteClient) Add(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.AddPreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Add", nil, "Failure preparing request")
return
}
resp, err := client.AddSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Add", resp, "Failure sending request")
return
}
result, err = client.AddResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Add", resp, "Failure responding to request")
}
return
}
// AddPreparer prepares the Add request.
func (client FavoriteClient) AddPreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithJSON(favoriteProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// AddSender sends the Add request. The method will close the
// http.Response Body if it receives an error.
func (client FavoriteClient) AddSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// AddResponder handles the response to the Add request. The method always
// closes the http.Response Body.
func (client FavoriteClient) AddResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Delete remove a favorite that is associated to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
func (client FavoriteClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, favoriteID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client FavoriteClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client FavoriteClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client FavoriteClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Get get a single favorite by its FavoriteId, defined within an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
func (client FavoriteClient) Get(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, favoriteID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client FavoriteClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client FavoriteClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client FavoriteClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Update updates a favorite that has already been added to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
// favoriteProperties - properties that need to be specified to update the existing favorite.
func (client FavoriteClient) Update(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Update", nil, "Failure preparing request")
return
}
resp, err := client.UpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Update", resp, "Failure sending request")
return
}
result, err = client.UpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoriteClient", "Update", resp, "Failure responding to request")
}
return
}
// UpdatePreparer prepares the Update request.
func (client FavoriteClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPatch(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithJSON(favoriteProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client FavoriteClient) UpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client FavoriteClient) UpdateResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -39,6 +39,216 @@ func NewFavoritesClientWithBaseURI(baseURI string, subscriptionID string) Favori
return FavoritesClient{NewWithBaseURI(baseURI, subscriptionID)} return FavoritesClient{NewWithBaseURI(baseURI, subscriptionID)}
} }
// Add adds a new favorites to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
// favoriteProperties - properties that need to be specified to create a new favorite and add it to an
// Application Insights component.
func (client FavoritesClient) Add(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.AddPreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Add", nil, "Failure preparing request")
return
}
resp, err := client.AddSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Add", resp, "Failure sending request")
return
}
result, err = client.AddResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Add", resp, "Failure responding to request")
}
return
}
// AddPreparer prepares the Add request.
func (client FavoritesClient) AddPreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithJSON(favoriteProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// AddSender sends the Add request. The method will close the
// http.Response Body if it receives an error.
func (client FavoritesClient) AddSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// AddResponder handles the response to the Add request. The method always
// closes the http.Response Body.
func (client FavoritesClient) AddResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Delete remove a favorite that is associated to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
func (client FavoritesClient) Delete(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName, favoriteID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client FavoritesClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client FavoritesClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client FavoritesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing())
result.Response = resp
return
}
// Get get a single favorite by its FavoriteId, defined within an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
func (client FavoritesClient) Get(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName, favoriteID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client FavoritesClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client FavoritesClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client FavoritesClient) GetResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// List gets a list of favorites defined within an Application Insights component. // List gets a list of favorites defined within an Application Insights component.
// Parameters: // Parameters:
// resourceGroupName - the name of the resource group. // resourceGroupName - the name of the resource group.
@ -125,3 +335,75 @@ func (client FavoritesClient) ListResponder(resp *http.Response) (result ListApp
result.Response = autorest.Response{Response: resp} result.Response = autorest.Response{Response: resp}
return return
} }
// Update updates a favorite that has already been added to an Application Insights component.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// favoriteID - the Id of a specific favorite defined in the Application Insights component
// favoriteProperties - properties that need to be specified to update the existing favorite.
func (client FavoritesClient) Update(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (result ApplicationInsightsComponentFavorite, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, favoriteID, favoriteProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Update", nil, "Failure preparing request")
return
}
resp, err := client.UpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Update", resp, "Failure sending request")
return
}
result, err = client.UpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.FavoritesClient", "Update", resp, "Failure responding to request")
}
return
}
// UpdatePreparer prepares the Update request.
func (client FavoritesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, favoriteID string, favoriteProperties ApplicationInsightsComponentFavorite) (*http.Request, error) {
pathParameters := map[string]interface{}{
"favoriteId": autorest.Encode("path", favoriteID),
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPatch(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", pathParameters),
autorest.WithJSON(favoriteProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client FavoritesClient) UpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client FavoritesClient) UpdateResponder(resp *http.Response) (result ApplicationInsightsComponentFavorite, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -20,7 +20,6 @@ package insights
import ( import (
"encoding/json" "encoding/json"
"github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date" "github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to" "github.com/Azure/go-autorest/autorest/to"
"net/http" "net/http"
@ -190,9 +189,9 @@ type PurgeState string
const ( const (
// Completed ... // Completed ...
Completed PurgeState = "Completed" Completed PurgeState = "completed"
// Pending ... // Pending ...
Pending PurgeState = "Pending" Pending PurgeState = "pending"
) )
// PossiblePurgeStateValues returns an array of possible values for the PurgeState const type. // PossiblePurgeStateValues returns an array of possible values for the PurgeState const type.
@ -268,6 +267,13 @@ type AnnotationError struct {
Innererror *InnerError `json:"innererror,omitempty"` Innererror *InnerError `json:"innererror,omitempty"`
} }
// AnnotationsListResult annotations list result.
type AnnotationsListResult struct {
autorest.Response `json:"-"`
// Value - An array of annotations.
Value *[]Annotation `json:"value,omitempty"`
}
// APIKeyRequest an Application Insights component API Key createion request definition. // APIKeyRequest an Application Insights component API Key createion request definition.
type APIKeyRequest struct { type APIKeyRequest struct {
// Name - The name of the API Key. // Name - The name of the API Key.
@ -876,42 +882,51 @@ type ComponentPurgeBodyFilters struct {
// ComponentPurgeResponse response containing operationId for a specific purge action. // ComponentPurgeResponse response containing operationId for a specific purge action.
type ComponentPurgeResponse struct { type ComponentPurgeResponse struct {
autorest.Response `json:"-"`
// OperationID - Id to use when querying for status for a particular purge operation. // OperationID - Id to use when querying for status for a particular purge operation.
OperationID *string `json:"operationId,omitempty"` OperationID *string `json:"operationId,omitempty"`
} }
// ComponentPurgeStatusResponse response containing status for a specific purge operation. // ComponentPurgeStatusResponse response containing status for a specific purge operation.
type ComponentPurgeStatusResponse struct { type ComponentPurgeStatusResponse struct {
autorest.Response `json:"-"`
// Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed' // Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed'
Status PurgeState `json:"status,omitempty"` Status PurgeState `json:"status,omitempty"`
} }
// ComponentsPurgeFuture an abstraction for monitoring and retrieving the results of a long-running operation. // ComponentsResource an azure resource object
type ComponentsPurgeFuture struct { type ComponentsResource struct {
azure.Future // ID - Azure resource Id
ID *string `json:"id,omitempty"`
// Name - Azure resource name
Name *string `json:"name,omitempty"`
// Type - Azure resource type
Type *string `json:"type,omitempty"`
// Location - Resource location
Location *string `json:"location,omitempty"`
// Tags - Resource tags
Tags map[string]*string `json:"tags"`
} }
// Result returns the result of the asynchronous operation. // MarshalJSON is the custom marshaler for ComponentsResource.
// If the operation has not completed it will return an error. func (cr ComponentsResource) MarshalJSON() ([]byte, error) {
func (future *ComponentsPurgeFuture) Result(client ComponentsClient) (so SetObject, err error) { objectMap := make(map[string]interface{})
var done bool if cr.ID != nil {
done, err = future.Done(client) objectMap["id"] = cr.ID
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsPurgeFuture", "Result", future.Response(), "Polling failure")
return
} }
if !done { if cr.Name != nil {
err = azure.NewAsyncOpIncompleteError("insights.ComponentsPurgeFuture") objectMap["name"] = cr.Name
return
} }
sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) if cr.Type != nil {
if so.Response.Response, err = future.GetResult(sender); err == nil && so.Response.Response.StatusCode != http.StatusNoContent { objectMap["type"] = cr.Type
so, err = client.PurgeResponder(so.Response.Response)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.ComponentsPurgeFuture", "Result", so.Response.Response, "Failure responding to request")
}
} }
return if cr.Location != nil {
objectMap["location"] = cr.Location
}
if cr.Tags != nil {
objectMap["tags"] = cr.Tags
}
return json.Marshal(objectMap)
} }
// ErrorFieldContract error Field contract. // ErrorFieldContract error Field contract.
@ -981,12 +996,6 @@ type ListApplicationInsightsComponentProactiveDetectionConfiguration struct {
Value *[]ApplicationInsightsComponentProactiveDetectionConfiguration `json:"value,omitempty"` Value *[]ApplicationInsightsComponentProactiveDetectionConfiguration `json:"value,omitempty"`
} }
// ListWorkItemConfiguration ...
type ListWorkItemConfiguration struct {
autorest.Response `json:"-"`
Value *[]WorkItemConfiguration `json:"value,omitempty"`
}
// Operation CDN REST API operation // Operation CDN REST API operation
type Operation struct { type Operation struct {
// Name - Operation name: {provider}/{resource}/{operation} // Name - Operation name: {provider}/{resource}/{operation}
@ -1108,41 +1117,6 @@ func (page OperationListResultPage) Values() []Operation {
return *page.olr.Value return *page.olr.Value
} }
// Resource an azure resource object
type Resource struct {
// ID - Azure resource Id
ID *string `json:"id,omitempty"`
// Name - Azure resource name
Name *string `json:"name,omitempty"`
// Type - Azure resource type
Type *string `json:"type,omitempty"`
// Location - Resource location
Location *string `json:"location,omitempty"`
// Tags - Resource tags
Tags map[string]*string `json:"tags"`
}
// MarshalJSON is the custom marshaler for Resource.
func (r Resource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if r.ID != nil {
objectMap["id"] = r.ID
}
if r.Name != nil {
objectMap["name"] = r.Name
}
if r.Type != nil {
objectMap["type"] = r.Type
}
if r.Location != nil {
objectMap["location"] = r.Location
}
if r.Tags != nil {
objectMap["tags"] = r.Tags
}
return json.Marshal(objectMap)
}
// SetObject ... // SetObject ...
type SetObject struct { type SetObject struct {
autorest.Response `json:"-"` autorest.Response `json:"-"`
@ -1430,6 +1404,41 @@ type WebTestPropertiesConfiguration struct {
WebTest *string `json:"WebTest,omitempty"` WebTest *string `json:"WebTest,omitempty"`
} }
// WebtestsResource an azure resource object
type WebtestsResource struct {
// ID - Azure resource Id
ID *string `json:"id,omitempty"`
// Name - Azure resource name
Name *string `json:"name,omitempty"`
// Type - Azure resource type
Type *string `json:"type,omitempty"`
// Location - Resource location
Location *string `json:"location,omitempty"`
// Tags - Resource tags
Tags map[string]*string `json:"tags"`
}
// MarshalJSON is the custom marshaler for WebtestsResource.
func (wr WebtestsResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if wr.ID != nil {
objectMap["id"] = wr.ID
}
if wr.Name != nil {
objectMap["name"] = wr.Name
}
if wr.Type != nil {
objectMap["type"] = wr.Type
}
if wr.Location != nil {
objectMap["location"] = wr.Location
}
if wr.Tags != nil {
objectMap["tags"] = wr.Tags
}
return json.Marshal(objectMap)
}
// Workbook an Application Insights workbook definition. // Workbook an Application Insights workbook definition.
type Workbook struct { type Workbook struct {
autorest.Response `json:"-"` autorest.Response `json:"-"`
@ -1588,8 +1597,43 @@ type WorkbookProperties struct {
SourceResourceID *string `json:"sourceResourceId,omitempty"` SourceResourceID *string `json:"sourceResourceId,omitempty"`
} }
// Workbooks workbook list result. // WorkbookResource an azure resource object
type Workbooks struct { type WorkbookResource struct {
// ID - Azure resource Id
ID *string `json:"id,omitempty"`
// Name - Azure resource name
Name *string `json:"name,omitempty"`
// Type - Azure resource type
Type *string `json:"type,omitempty"`
// Location - Resource location
Location *string `json:"location,omitempty"`
// Tags - Resource tags
Tags map[string]*string `json:"tags"`
}
// MarshalJSON is the custom marshaler for WorkbookResource.
func (wr WorkbookResource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if wr.ID != nil {
objectMap["id"] = wr.ID
}
if wr.Name != nil {
objectMap["name"] = wr.Name
}
if wr.Type != nil {
objectMap["type"] = wr.Type
}
if wr.Location != nil {
objectMap["location"] = wr.Location
}
if wr.Tags != nil {
objectMap["tags"] = wr.Tags
}
return json.Marshal(objectMap)
}
// WorkbooksListResult workbook list result.
type WorkbooksListResult struct {
autorest.Response `json:"-"` autorest.Response `json:"-"`
// Value - An array of workbooks. // Value - An array of workbooks.
Value *[]Workbook `json:"value,omitempty"` Value *[]Workbook `json:"value,omitempty"`
@ -1619,6 +1663,13 @@ type WorkItemConfigurationError struct {
Innererror *InnerError `json:"innererror,omitempty"` Innererror *InnerError `json:"innererror,omitempty"`
} }
// WorkItemConfigurationsListResult work item configuration list result.
type WorkItemConfigurationsListResult struct {
autorest.Response `json:"-"`
// Value - An array of work item configurations.
Value *[]WorkItemConfiguration `json:"value,omitempty"`
}
// WorkItemCreateConfiguration work item configuration creation payload // WorkItemCreateConfiguration work item configuration creation payload
type WorkItemCreateConfiguration struct { type WorkItemCreateConfiguration struct {
// ConnectorID - Unique connector id // ConnectorID - Unique connector id

View file

@ -1,326 +0,0 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
)
// WorkbookClient is the composite Swagger for Application Insights Management Client
type WorkbookClient struct {
BaseClient
}
// NewWorkbookClient creates an instance of the WorkbookClient client.
func NewWorkbookClient(subscriptionID string) WorkbookClient {
return NewWorkbookClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewWorkbookClientWithBaseURI creates an instance of the WorkbookClient client.
func NewWorkbookClientWithBaseURI(baseURI string, subscriptionID string) WorkbookClient {
return WorkbookClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate create a new workbook.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// workbookProperties - properties that need to be specified to create a new workbook.
func (client WorkbookClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: workbookProperties,
Constraints: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties.Name", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.SerializedData", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.WorkbookID", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.Category", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.UserID", Name: validation.Null, Rule: true, Chain: nil},
}}}}}); err != nil {
return result, validation.NewError("insights.WorkbookClient", "CreateOrUpdate", err.Error())
}
req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, workbookProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "CreateOrUpdate", nil, "Failure preparing request")
return
}
resp, err := client.CreateOrUpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "CreateOrUpdate", resp, "Failure sending request")
return
}
result, err = client.CreateOrUpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "CreateOrUpdate", resp, "Failure responding to request")
}
return
}
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client WorkbookClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithJSON(workbookProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbookClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client WorkbookClient) CreateOrUpdateResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Delete delete a workbook.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
func (client WorkbookClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client WorkbookClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbookClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client WorkbookClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusNoContent),
autorest.ByClosing())
result.Response = resp
return
}
// Get get a single workbook by its resourceName.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
func (client WorkbookClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result Workbook, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client WorkbookClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbookClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client WorkbookClient) GetResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Update updates a workbook that has already been added.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// workbookProperties - properties that need to be specified to create a new workbook.
func (client WorkbookClient) Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, workbookProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Update", nil, "Failure preparing request")
return
}
resp, err := client.UpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Update", resp, "Failure sending request")
return
}
result, err = client.UpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbookClient", "Update", resp, "Failure responding to request")
}
return
}
// UpdatePreparer prepares the Update request.
func (client WorkbookClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPatch(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithJSON(workbookProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbookClient) UpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client WorkbookClient) UpdateResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -21,6 +21,7 @@ import (
"context" "context"
"github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http" "net/http"
) )
@ -39,6 +40,221 @@ func NewWorkbooksClientWithBaseURI(baseURI string, subscriptionID string) Workbo
return WorkbooksClient{NewWithBaseURI(baseURI, subscriptionID)} return WorkbooksClient{NewWithBaseURI(baseURI, subscriptionID)}
} }
// CreateOrUpdate create a new workbook.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// workbookProperties - properties that need to be specified to create a new workbook.
func (client WorkbooksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: workbookProperties,
Constraints: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "workbookProperties.WorkbookProperties.Name", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.SerializedData", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.WorkbookID", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.Category", Name: validation.Null, Rule: true, Chain: nil},
{Target: "workbookProperties.WorkbookProperties.UserID", Name: validation.Null, Rule: true, Chain: nil},
}}}}}); err != nil {
return result, validation.NewError("insights.WorkbooksClient", "CreateOrUpdate", err.Error())
}
req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, resourceName, workbookProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "CreateOrUpdate", nil, "Failure preparing request")
return
}
resp, err := client.CreateOrUpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "CreateOrUpdate", resp, "Failure sending request")
return
}
result, err = client.CreateOrUpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "CreateOrUpdate", resp, "Failure responding to request")
}
return
}
// CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client WorkbooksClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPut(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithJSON(workbookProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbooksClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
// closes the http.Response Body.
func (client WorkbooksClient) CreateOrUpdateResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Delete delete a workbook.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
func (client WorkbooksClient) Delete(ctx context.Context, resourceGroupName string, resourceName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(ctx, resourceGroupName, resourceName)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Delete", nil, "Failure preparing request")
return
}
resp, err := client.DeleteSender(req)
if err != nil {
result.Response = resp
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Delete", resp, "Failure sending request")
return
}
result, err = client.DeleteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Delete", resp, "Failure responding to request")
}
return
}
// DeletePreparer prepares the Delete request.
func (client WorkbooksClient) DeletePreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsDelete(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbooksClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
// closes the http.Response Body.
func (client WorkbooksClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusNoContent),
autorest.ByClosing())
result.Response = resp
return
}
// Get get a single workbook by its resourceName.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
func (client WorkbooksClient) Get(ctx context.Context, resourceGroupName string, resourceName string) (result Workbook, err error) {
req, err := client.GetPreparer(ctx, resourceGroupName, resourceName)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client WorkbooksClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbooksClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client WorkbooksClient) GetResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// ListByResourceGroup get all Workbooks defined within a specified resource group and category. // ListByResourceGroup get all Workbooks defined within a specified resource group and category.
// Parameters: // Parameters:
// resourceGroupName - the name of the resource group. // resourceGroupName - the name of the resource group.
@ -46,7 +262,7 @@ func NewWorkbooksClientWithBaseURI(baseURI string, subscriptionID string) Workbo
// tags - tags presents on each workbook returned. // tags - tags presents on each workbook returned.
// canFetchContent - flag indicating whether or not to return the full content for each applicable workbook. If // canFetchContent - flag indicating whether or not to return the full content for each applicable workbook. If
// false, only return summary content for workbooks. // false, only return summary content for workbooks.
func (client WorkbooksClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, category CategoryType, tags []string, canFetchContent *bool) (result Workbooks, err error) { func (client WorkbooksClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, category CategoryType, tags []string, canFetchContent *bool) (result WorkbooksListResult, err error) {
req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, category, tags, canFetchContent) req, err := client.ListByResourceGroupPreparer(ctx, resourceGroupName, category, tags, canFetchContent)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "ListByResourceGroup", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "ListByResourceGroup", nil, "Failure preparing request")
@ -104,7 +320,77 @@ func (client WorkbooksClient) ListByResourceGroupSender(req *http.Request) (*htt
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always // ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body. // closes the http.Response Body.
func (client WorkbooksClient) ListByResourceGroupResponder(resp *http.Response) (result Workbooks, err error) { func (client WorkbooksClient) ListByResourceGroupResponder(resp *http.Response) (result WorkbooksListResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Update updates a workbook that has already been added.
// Parameters:
// resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource.
// workbookProperties - properties that need to be specified to create a new workbook.
func (client WorkbooksClient) Update(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (result Workbook, err error) {
req, err := client.UpdatePreparer(ctx, resourceGroupName, resourceName, workbookProperties)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Update", nil, "Failure preparing request")
return
}
resp, err := client.UpdateSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Update", resp, "Failure sending request")
return
}
result, err = client.UpdateResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkbooksClient", "Update", resp, "Failure responding to request")
}
return
}
// UpdatePreparer prepares the Update request.
func (client WorkbooksClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceName string, workbookProperties Workbook) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"resourceName": autorest.Encode("path", resourceName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2015-05-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPatch(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", pathParameters),
autorest.WithJSON(workbookProperties),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client WorkbooksClient) UpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
azure.DoRetryWithRegistration(client.Client))
}
// UpdateResponder handles the response to the Update request. The method always
// closes the http.Response Body.
func (client WorkbooksClient) UpdateResponder(resp *http.Response) (result Workbook, err error) {
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),

View file

@ -251,7 +251,7 @@ func (client WorkItemConfigurationsClient) GetDefaultResponder(resp *http.Respon
// Parameters: // Parameters:
// resourceGroupName - the name of the resource group. // resourceGroupName - the name of the resource group.
// resourceName - the name of the Application Insights component resource. // resourceName - the name of the Application Insights component resource.
func (client WorkItemConfigurationsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result ListWorkItemConfiguration, err error) { func (client WorkItemConfigurationsClient) List(ctx context.Context, resourceGroupName string, resourceName string) (result WorkItemConfigurationsListResult, err error) {
req, err := client.ListPreparer(ctx, resourceGroupName, resourceName) req, err := client.ListPreparer(ctx, resourceGroupName, resourceName)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "List", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "insights.WorkItemConfigurationsClient", "List", nil, "Failure preparing request")
@ -303,12 +303,12 @@ func (client WorkItemConfigurationsClient) ListSender(req *http.Request) (*http.
// ListResponder handles the response to the List request. The method always // ListResponder handles the response to the List request. The method always
// closes the http.Response Body. // closes the http.Response Body.
func (client WorkItemConfigurationsClient) ListResponder(resp *http.Response) (result ListWorkItemConfiguration, err error) { func (client WorkItemConfigurationsClient) ListResponder(resp *http.Response) (result WorkItemConfigurationsListResult, err error) {
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK), azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value), autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing()) autorest.ByClosing())
result.Response = autorest.Response{Response: resp} result.Response = autorest.Response{Response: resp}
return return

View file

@ -21,11 +21,7 @@ package insights
// Changes may cause incorrect behavior and will be lost if the code is regenerated. // Changes may cause incorrect behavior and will be lost if the code is regenerated.
import ( import (
"context"
"github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
) )
const ( const (
@ -37,688 +33,17 @@ const (
type BaseClient struct { type BaseClient struct {
autorest.Client autorest.Client
BaseURI string BaseURI string
AppID string
} }
// New creates an instance of the BaseClient client. // New creates an instance of the BaseClient client.
func New(appID string) BaseClient { func New() BaseClient {
return NewWithBaseURI(DefaultBaseURI, appID) return NewWithBaseURI(DefaultBaseURI)
} }
// NewWithBaseURI creates an instance of the BaseClient client. // NewWithBaseURI creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, appID string) BaseClient { func NewWithBaseURI(baseURI string) BaseClient {
return BaseClient{ return BaseClient{
Client: autorest.NewClientWithUserAgent(UserAgent()), Client: autorest.NewClientWithUserAgent(UserAgent()),
BaseURI: baseURI, BaseURI: baseURI,
AppID: appID,
} }
} }
// GetEvent gets the data for a single event
// Parameters:
// eventType - the type of events to query; either a standard event type (`traces`, `customEvents`,
// `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all
// event types.
// eventID - ID of event.
// timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the Odata expression.
func (client BaseClient) GetEvent(ctx context.Context, eventType EventType, eventID string, timespan *string) (result EventsResults, err error) {
req, err := client.GetEventPreparer(ctx, eventType, eventID, timespan)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvent", nil, "Failure preparing request")
return
}
resp, err := client.GetEventSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvent", resp, "Failure sending request")
return
}
result, err = client.GetEventResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvent", resp, "Failure responding to request")
}
return
}
// GetEventPreparer prepares the GetEvent request.
func (client BaseClient) GetEventPreparer(ctx context.Context, eventType EventType, eventID string, timespan *string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
"eventId": autorest.Encode("path", eventID),
"eventType": autorest.Encode("path", eventType),
}
queryParameters := map[string]interface{}{}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/{eventType}/{eventId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetEventSender sends the GetEvent request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetEventSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetEventResponder handles the response to the GetEvent request. The method always
// closes the http.Response Body.
func (client BaseClient) GetEventResponder(resp *http.Response) (result EventsResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetEvents executes an OData query for events
// Parameters:
// eventType - the type of events to query; either a standard event type (`traces`, `customEvents`,
// `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all
// event types.
// timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the Odata expression.
// filter - an expression used to filter the returned events
// search - a free-text search expression to match for whether a particular event should be returned
// orderby - a comma-separated list of properties with \"asc\" (the default) or \"desc\" to control the order
// of returned events
// selectParameter - limits the properties to just those requested on each returned event
// skip - the number of items to skip over before returning events
// top - the number of events to return
// formatParameter - format for the returned events
// count - request a count of matching items included with the returned events
// apply - an expression used for aggregation over returned events
func (client BaseClient) GetEvents(ctx context.Context, eventType EventType, timespan *string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (result EventsResults, err error) {
req, err := client.GetEventsPreparer(ctx, eventType, timespan, filter, search, orderby, selectParameter, skip, top, formatParameter, count, apply)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvents", nil, "Failure preparing request")
return
}
resp, err := client.GetEventsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvents", resp, "Failure sending request")
return
}
result, err = client.GetEventsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEvents", resp, "Failure responding to request")
}
return
}
// GetEventsPreparer prepares the GetEvents request.
func (client BaseClient) GetEventsPreparer(ctx context.Context, eventType EventType, timespan *string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
"eventType": autorest.Encode("path", eventType),
}
queryParameters := map[string]interface{}{}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
if len(search) > 0 {
queryParameters["$search"] = autorest.Encode("query", search)
}
if len(orderby) > 0 {
queryParameters["$orderby"] = autorest.Encode("query", orderby)
}
if len(selectParameter) > 0 {
queryParameters["$select"] = autorest.Encode("query", selectParameter)
}
if skip != nil {
queryParameters["$skip"] = autorest.Encode("query", *skip)
}
if top != nil {
queryParameters["$top"] = autorest.Encode("query", *top)
}
if len(formatParameter) > 0 {
queryParameters["$format"] = autorest.Encode("query", formatParameter)
}
if count != nil {
queryParameters["$count"] = autorest.Encode("query", *count)
}
if len(apply) > 0 {
queryParameters["$apply"] = autorest.Encode("query", apply)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/{eventType}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetEventsSender sends the GetEvents request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetEventsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetEventsResponder handles the response to the GetEvents request. The method always
// closes the http.Response Body.
func (client BaseClient) GetEventsResponder(resp *http.Response) (result EventsResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetEventsMetadataOData gets OData EDMX metadata describing the event data model
func (client BaseClient) GetEventsMetadataOData(ctx context.Context) (result SetObject, err error) {
req, err := client.GetEventsMetadataODataPreparer(ctx)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEventsMetadataOData", nil, "Failure preparing request")
return
}
resp, err := client.GetEventsMetadataODataSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEventsMetadataOData", resp, "Failure sending request")
return
}
result, err = client.GetEventsMetadataODataResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetEventsMetadataOData", resp, "Failure responding to request")
}
return
}
// GetEventsMetadataODataPreparer prepares the GetEventsMetadataOData request.
func (client BaseClient) GetEventsMetadataODataPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/$metadata", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetEventsMetadataODataSender sends the GetEventsMetadataOData request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetEventsMetadataODataSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetEventsMetadataODataResponder handles the response to the GetEventsMetadataOData request. The method always
// closes the http.Response Body.
func (client BaseClient) GetEventsMetadataODataResponder(resp *http.Response) (result SetObject, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMetric gets data for a single metric.
// Parameters:
// metricID - ID of the metric. This is either a standard AI metric, or an application-specific custom metric.
// timespan - the timespan over which to retrieve metric values. This is an ISO8601 time period value. If
// timespan is omitted, a default time range of `PT12H` ("last 12 hours") is used. The actual timespan that is
// queried may be adjusted by the server based. In all cases, the actual time span used for the query is
// included in the response.
// interval - the time interval to use when retrieving metric values. This is an ISO8601 duration. If interval
// is omitted, the metric value is aggregated across the entire timespan. If interval is supplied, the server
// may adjust the interval to a more appropriate size based on the timespan used for the query. In all cases,
// the actual interval used for the query is included in the response.
// aggregation - the aggregation to use when computing the metric values. To retrieve more than one aggregation
// at a time, separate them with a comma. If no aggregation is specified, then the default aggregation for the
// metric is used.
// segment - the name of the dimension to segment the metric values by. This dimension must be applicable to
// the metric you are retrieving. To segment by more than one dimension at a time, separate them with a comma
// (,). In this case, the metric data will be segmented in the order the dimensions are listed in the
// parameter.
// top - the number of segments to return. This value is only valid when segment is specified.
// orderby - the aggregation function and direction to sort the segments by. This value is only valid when
// segment is specified.
// filter - an expression used to filter the results. This value should be a valid OData filter expression
// where the keys of each clause should be applicable dimensions for the metric you are retrieving.
func (client BaseClient) GetMetric(ctx context.Context, metricID string, timespan *string, interval *string, aggregation []string, segment []string, top *int32, orderby string, filter string) (result MetricsResult, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: aggregation,
Constraints: []validation.Constraint{{Target: "aggregation", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "aggregation", Name: validation.MinItems, Rule: 1, Chain: nil}}}}},
{TargetValue: segment,
Constraints: []validation.Constraint{{Target: "segment", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "segment", Name: validation.MinItems, Rule: 1, Chain: nil}}}}}}); err != nil {
return result, validation.NewError("insights.BaseClient", "GetMetric", err.Error())
}
req, err := client.GetMetricPreparer(ctx, metricID, timespan, interval, aggregation, segment, top, orderby, filter)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetric", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetric", resp, "Failure sending request")
return
}
result, err = client.GetMetricResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetric", resp, "Failure responding to request")
}
return
}
// GetMetricPreparer prepares the GetMetric request.
func (client BaseClient) GetMetricPreparer(ctx context.Context, metricID string, timespan *string, interval *string, aggregation []string, segment []string, top *int32, orderby string, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
"metricId": autorest.Encode("path", metricID),
}
queryParameters := map[string]interface{}{}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
if interval != nil {
queryParameters["interval"] = autorest.Encode("query", *interval)
}
if aggregation != nil && len(aggregation) > 0 {
queryParameters["aggregation"] = autorest.Encode("query", aggregation, ",")
}
if segment != nil && len(segment) > 0 {
queryParameters["segment"] = autorest.Encode("query", segment, ",")
}
if top != nil {
queryParameters["top"] = autorest.Encode("query", *top)
}
if len(orderby) > 0 {
queryParameters["orderby"] = autorest.Encode("query", orderby)
}
if len(filter) > 0 {
queryParameters["filter"] = autorest.Encode("query", filter)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics/{metricId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricSender sends the GetMetric request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetMetricSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricResponder handles the response to the GetMetric request. The method always
// closes the http.Response Body.
func (client BaseClient) GetMetricResponder(resp *http.Response) (result MetricsResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMetrics gets metric values for multiple metrics
// Parameters:
// body - the batched metrics query.
func (client BaseClient) GetMetrics(ctx context.Context, body []MetricsPostBodySchema) (result ListMetricsResultsItem, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: body,
Constraints: []validation.Constraint{{Target: "body", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
return result, validation.NewError("insights.BaseClient", "GetMetrics", err.Error())
}
req, err := client.GetMetricsPreparer(ctx, body)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetrics", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetrics", resp, "Failure sending request")
return
}
result, err = client.GetMetricsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetrics", resp, "Failure responding to request")
}
return
}
// GetMetricsPreparer prepares the GetMetrics request.
func (client BaseClient) GetMetricsPreparer(ctx context.Context, body []MetricsPostBodySchema) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics", pathParameters),
autorest.WithJSON(body))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsSender sends the GetMetrics request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetMetricsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsResponder handles the response to the GetMetrics request. The method always
// closes the http.Response Body.
func (client BaseClient) GetMetricsResponder(resp *http.Response) (result ListMetricsResultsItem, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMetricsMetadata gets metadata describing the available metrics
func (client BaseClient) GetMetricsMetadata(ctx context.Context) (result SetObject, err error) {
req, err := client.GetMetricsMetadataPreparer(ctx)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetricsMetadata", nil, "Failure preparing request")
return
}
resp, err := client.GetMetricsMetadataSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetricsMetadata", resp, "Failure sending request")
return
}
result, err = client.GetMetricsMetadataResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetMetricsMetadata", resp, "Failure responding to request")
}
return
}
// GetMetricsMetadataPreparer prepares the GetMetricsMetadata request.
func (client BaseClient) GetMetricsMetadataPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics/metadata", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetricsMetadataSender sends the GetMetricsMetadata request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetMetricsMetadataSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetricsMetadataResponder handles the response to the GetMetricsMetadata request. The method always
// closes the http.Response Body.
func (client BaseClient) GetMetricsMetadataResponder(resp *http.Response) (result SetObject, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetQuery executes an Analytics query for data
// Parameters:
// query - the Analytics query. Learn more about the [Analytics query
// syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
// timespan - optional. The timespan over which to query data. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the query expression.
func (client BaseClient) GetQuery(ctx context.Context, query string, timespan *string) (result QueryResults, err error) {
req, err := client.GetQueryPreparer(ctx, query, timespan)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuery", nil, "Failure preparing request")
return
}
resp, err := client.GetQuerySender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuery", resp, "Failure sending request")
return
}
result, err = client.GetQueryResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuery", resp, "Failure responding to request")
}
return
}
// GetQueryPreparer prepares the GetQuery request.
func (client BaseClient) GetQueryPreparer(ctx context.Context, query string, timespan *string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
queryParameters := map[string]interface{}{
"query": autorest.Encode("query", query),
}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/query", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetQuerySender sends the GetQuery request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetQuerySender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetQueryResponder handles the response to the GetQuery request. The method always
// closes the http.Response Body.
func (client BaseClient) GetQueryResponder(resp *http.Response) (result QueryResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetQuerySchema gets Analytics query schema describing the data model
func (client BaseClient) GetQuerySchema(ctx context.Context) (result QueryResults, err error) {
req, err := client.GetQuerySchemaPreparer(ctx)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuerySchema", nil, "Failure preparing request")
return
}
resp, err := client.GetQuerySchemaSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuerySchema", resp, "Failure sending request")
return
}
result, err = client.GetQuerySchemaResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "GetQuerySchema", resp, "Failure responding to request")
}
return
}
// GetQuerySchemaPreparer prepares the GetQuerySchema request.
func (client BaseClient) GetQuerySchemaPreparer(ctx context.Context) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/query/schema", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetQuerySchemaSender sends the GetQuerySchema request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) GetQuerySchemaSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetQuerySchemaResponder handles the response to the GetQuerySchema request. The method always
// closes the http.Response Body.
func (client BaseClient) GetQuerySchemaResponder(resp *http.Response) (result QueryResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// Query executes an Analytics query for data. [Here](/documentation/2-Using-the-API/Query) is an example for using
// POST with an Analytics query.
// Parameters:
// body - the Analytics query. Learn more about the [Analytics query
// syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
// timespan - optional. The timespan over which to query data. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the query expression.
func (client BaseClient) Query(ctx context.Context, body QueryBody, timespan *string) (result QueryResults, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: body,
Constraints: []validation.Constraint{{Target: "body.Query", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
return result, validation.NewError("insights.BaseClient", "Query", err.Error())
}
req, err := client.QueryPreparer(ctx, body, timespan)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "Query", nil, "Failure preparing request")
return
}
resp, err := client.QuerySender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.BaseClient", "Query", resp, "Failure sending request")
return
}
result, err = client.QueryResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.BaseClient", "Query", resp, "Failure responding to request")
}
return
}
// QueryPreparer prepares the Query request.
func (client BaseClient) QueryPreparer(ctx context.Context, body QueryBody, timespan *string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", client.AppID),
}
queryParameters := map[string]interface{}{}
if timespan != nil {
queryParameters["timespan"] = autorest.Encode("query", *timespan)
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/query", pathParameters),
autorest.WithJSON(body),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// QuerySender sends the Query request. The method will close the
// http.Response Body if it receives an error.
func (client BaseClient) QuerySender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// QueryResponder handles the response to the Query request. The method always
// closes the http.Response Body.
func (client BaseClient) QueryResponder(resp *http.Response) (result QueryResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -0,0 +1,280 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"net/http"
)
// EventsClient is the composite Swagger for Application Insights Data Client
type EventsClient struct {
BaseClient
}
// NewEventsClient creates an instance of the EventsClient client.
func NewEventsClient() EventsClient {
return NewEventsClientWithBaseURI(DefaultBaseURI)
}
// NewEventsClientWithBaseURI creates an instance of the EventsClient client.
func NewEventsClientWithBaseURI(baseURI string) EventsClient {
return EventsClient{NewWithBaseURI(baseURI)}
}
// Get gets the data for a single event
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// eventType - the type of events to query; either a standard event type (`traces`, `customEvents`,
// `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all
// event types.
// eventID - ID of event.
// timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the Odata expression.
func (client EventsClient) Get(ctx context.Context, appID string, eventType EventType, eventID string, timespan string) (result EventsResults, err error) {
req, err := client.GetPreparer(ctx, appID, eventType, eventID, timespan)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.EventsClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client EventsClient) GetPreparer(ctx context.Context, appID string, eventType EventType, eventID string, timespan string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
"eventId": autorest.Encode("path", eventID),
"eventType": autorest.Encode("path", eventType),
}
queryParameters := map[string]interface{}{}
if len(timespan) > 0 {
queryParameters["timespan"] = autorest.Encode("query", timespan)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/{eventType}/{eventId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client EventsClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client EventsClient) GetResponder(resp *http.Response) (result EventsResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetByType executes an OData query for events
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// eventType - the type of events to query; either a standard event type (`traces`, `customEvents`,
// `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or `$all` to query across all
// event types.
// timespan - optional. The timespan over which to retrieve events. This is an ISO8601 time period value. This
// timespan is applied in addition to any that are specified in the Odata expression.
// filter - an expression used to filter the returned events
// search - a free-text search expression to match for whether a particular event should be returned
// orderby - a comma-separated list of properties with \"asc\" (the default) or \"desc\" to control the order
// of returned events
// selectParameter - limits the properties to just those requested on each returned event
// skip - the number of items to skip over before returning events
// top - the number of events to return
// formatParameter - format for the returned events
// count - request a count of matching items included with the returned events
// apply - an expression used for aggregation over returned events
func (client EventsClient) GetByType(ctx context.Context, appID string, eventType EventType, timespan string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (result EventsResults, err error) {
req, err := client.GetByTypePreparer(ctx, appID, eventType, timespan, filter, search, orderby, selectParameter, skip, top, formatParameter, count, apply)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetByType", nil, "Failure preparing request")
return
}
resp, err := client.GetByTypeSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetByType", resp, "Failure sending request")
return
}
result, err = client.GetByTypeResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetByType", resp, "Failure responding to request")
}
return
}
// GetByTypePreparer prepares the GetByType request.
func (client EventsClient) GetByTypePreparer(ctx context.Context, appID string, eventType EventType, timespan string, filter string, search string, orderby string, selectParameter string, skip *int32, top *int32, formatParameter string, count *bool, apply string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
"eventType": autorest.Encode("path", eventType),
}
queryParameters := map[string]interface{}{}
if len(timespan) > 0 {
queryParameters["timespan"] = autorest.Encode("query", timespan)
}
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
if len(search) > 0 {
queryParameters["$search"] = autorest.Encode("query", search)
}
if len(orderby) > 0 {
queryParameters["$orderby"] = autorest.Encode("query", orderby)
}
if len(selectParameter) > 0 {
queryParameters["$select"] = autorest.Encode("query", selectParameter)
}
if skip != nil {
queryParameters["$skip"] = autorest.Encode("query", *skip)
}
if top != nil {
queryParameters["$top"] = autorest.Encode("query", *top)
}
if len(formatParameter) > 0 {
queryParameters["$format"] = autorest.Encode("query", formatParameter)
}
if count != nil {
queryParameters["$count"] = autorest.Encode("query", *count)
}
if len(apply) > 0 {
queryParameters["$apply"] = autorest.Encode("query", apply)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/{eventType}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetByTypeSender sends the GetByType request. The method will close the
// http.Response Body if it receives an error.
func (client EventsClient) GetByTypeSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetByTypeResponder handles the response to the GetByType request. The method always
// closes the http.Response Body.
func (client EventsClient) GetByTypeResponder(resp *http.Response) (result EventsResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetOdataMetadata gets OData EDMX metadata describing the event data model
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
func (client EventsClient) GetOdataMetadata(ctx context.Context, appID string) (result SetObject, err error) {
req, err := client.GetOdataMetadataPreparer(ctx, appID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetOdataMetadata", nil, "Failure preparing request")
return
}
resp, err := client.GetOdataMetadataSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetOdataMetadata", resp, "Failure sending request")
return
}
result, err = client.GetOdataMetadataResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.EventsClient", "GetOdataMetadata", resp, "Failure responding to request")
}
return
}
// GetOdataMetadataPreparer prepares the GetOdataMetadata request.
func (client EventsClient) GetOdataMetadataPreparer(ctx context.Context, appID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/events/$metadata", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetOdataMetadataSender sends the GetOdataMetadata request. The method will close the
// http.Response Body if it receives an error.
func (client EventsClient) GetOdataMetadataSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetOdataMetadataResponder handles the response to the GetOdataMetadata request. The method always
// closes the http.Response Body.
func (client EventsClient) GetOdataMetadataResponder(resp *http.Response) (result SetObject, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -0,0 +1,283 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
)
// MetricsClient is the composite Swagger for Application Insights Data Client
type MetricsClient struct {
BaseClient
}
// NewMetricsClient creates an instance of the MetricsClient client.
func NewMetricsClient() MetricsClient {
return NewMetricsClientWithBaseURI(DefaultBaseURI)
}
// NewMetricsClientWithBaseURI creates an instance of the MetricsClient client.
func NewMetricsClientWithBaseURI(baseURI string) MetricsClient {
return MetricsClient{NewWithBaseURI(baseURI)}
}
// Get gets metric values for a single metric
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// metricID - ID of the metric. This is either a standard AI metric, or an application-specific custom metric.
// timespan - the timespan over which to retrieve metric values. This is an ISO8601 time period value. If
// timespan is omitted, a default time range of `PT12H` ("last 12 hours") is used. The actual timespan that is
// queried may be adjusted by the server based. In all cases, the actual time span used for the query is
// included in the response.
// interval - the time interval to use when retrieving metric values. This is an ISO8601 duration. If interval
// is omitted, the metric value is aggregated across the entire timespan. If interval is supplied, the server
// may adjust the interval to a more appropriate size based on the timespan used for the query. In all cases,
// the actual interval used for the query is included in the response.
// aggregation - the aggregation to use when computing the metric values. To retrieve more than one aggregation
// at a time, separate them with a comma. If no aggregation is specified, then the default aggregation for the
// metric is used.
// segment - the name of the dimension to segment the metric values by. This dimension must be applicable to
// the metric you are retrieving. To segment by more than one dimension at a time, separate them with a comma
// (,). In this case, the metric data will be segmented in the order the dimensions are listed in the
// parameter.
// top - the number of segments to return. This value is only valid when segment is specified.
// orderby - the aggregation function and direction to sort the segments by. This value is only valid when
// segment is specified.
// filter - an expression used to filter the results. This value should be a valid OData filter expression
// where the keys of each clause should be applicable dimensions for the metric you are retrieving.
func (client MetricsClient) Get(ctx context.Context, appID string, metricID MetricID, timespan string, interval *string, aggregation []MetricsAggregation, segment []MetricsSegment, top *int32, orderby string, filter string) (result MetricsResult, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: aggregation,
Constraints: []validation.Constraint{{Target: "aggregation", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "aggregation", Name: validation.MinItems, Rule: 1, Chain: nil}}}}},
{TargetValue: segment,
Constraints: []validation.Constraint{{Target: "segment", Name: validation.Null, Rule: false,
Chain: []validation.Constraint{{Target: "segment", Name: validation.MinItems, Rule: 1, Chain: nil}}}}}}); err != nil {
return result, validation.NewError("insights.MetricsClient", "Get", err.Error())
}
req, err := client.GetPreparer(ctx, appID, metricID, timespan, interval, aggregation, segment, top, orderby, filter)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "Get", nil, "Failure preparing request")
return
}
resp, err := client.GetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "Get", resp, "Failure sending request")
return
}
result, err = client.GetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "Get", resp, "Failure responding to request")
}
return
}
// GetPreparer prepares the Get request.
func (client MetricsClient) GetPreparer(ctx context.Context, appID string, metricID MetricID, timespan string, interval *string, aggregation []MetricsAggregation, segment []MetricsSegment, top *int32, orderby string, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
"metricId": autorest.Encode("path", metricID),
}
queryParameters := map[string]interface{}{}
if len(timespan) > 0 {
queryParameters["timespan"] = autorest.Encode("query", timespan)
}
if interval != nil {
queryParameters["interval"] = autorest.Encode("query", *interval)
}
if aggregation != nil && len(aggregation) > 0 {
queryParameters["aggregation"] = autorest.Encode("query", aggregation, ",")
}
if segment != nil && len(segment) > 0 {
queryParameters["segment"] = autorest.Encode("query", segment, ",")
}
if top != nil {
queryParameters["top"] = autorest.Encode("query", *top)
}
if len(orderby) > 0 {
queryParameters["orderby"] = autorest.Encode("query", orderby)
}
if len(filter) > 0 {
queryParameters["filter"] = autorest.Encode("query", filter)
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics/{metricId}", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client MetricsClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetResponder handles the response to the Get request. The method always
// closes the http.Response Body.
func (client MetricsClient) GetResponder(resp *http.Response) (result MetricsResult, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMetadata gets metadata describing the available metrics
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
func (client MetricsClient) GetMetadata(ctx context.Context, appID string) (result SetObject, err error) {
req, err := client.GetMetadataPreparer(ctx, appID)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMetadata", nil, "Failure preparing request")
return
}
resp, err := client.GetMetadataSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMetadata", resp, "Failure sending request")
return
}
result, err = client.GetMetadataResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMetadata", resp, "Failure responding to request")
}
return
}
// GetMetadataPreparer prepares the GetMetadata request.
func (client MetricsClient) GetMetadataPreparer(ctx context.Context, appID string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics/metadata", pathParameters))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMetadataSender sends the GetMetadata request. The method will close the
// http.Response Body if it receives an error.
func (client MetricsClient) GetMetadataSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMetadataResponder handles the response to the GetMetadata request. The method always
// closes the http.Response Body.
func (client MetricsClient) GetMetadataResponder(resp *http.Response) (result SetObject, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// GetMultiple gets metric values for multiple metrics
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// body - the batched metrics query.
func (client MetricsClient) GetMultiple(ctx context.Context, appID string, body []MetricsPostBodySchema) (result ListMetricsResultsItem, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: body,
Constraints: []validation.Constraint{{Target: "body", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
return result, validation.NewError("insights.MetricsClient", "GetMultiple", err.Error())
}
req, err := client.GetMultiplePreparer(ctx, appID, body)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMultiple", nil, "Failure preparing request")
return
}
resp, err := client.GetMultipleSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMultiple", resp, "Failure sending request")
return
}
result, err = client.GetMultipleResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.MetricsClient", "GetMultiple", resp, "Failure responding to request")
}
return
}
// GetMultiplePreparer prepares the GetMultiple request.
func (client MetricsClient) GetMultiplePreparer(ctx context.Context, appID string, body []MetricsPostBodySchema) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/metrics", pathParameters),
autorest.WithJSON(body))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// GetMultipleSender sends the GetMultiple request. The method will close the
// http.Response Body if it receives an error.
func (client MetricsClient) GetMultipleSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// GetMultipleResponder handles the response to the GetMultiple request. The method always
// closes the http.Response Body.
func (client MetricsClient) GetMultipleResponder(resp *http.Response) (result ListMetricsResultsItem, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result.Value),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -131,6 +131,72 @@ func PossibleMetricIDValues() []MetricID {
return []MetricID{AvailabilityResultsavailabilityPercentage, AvailabilityResultsduration, BillingtelemetryCount, ClientnetworkDuration, ClientprocessingDuration, ClientreceiveDuration, ClientsendDuration, ClienttotalDuration, CustomEventscount, Dependenciescount, Dependenciesduration, Dependenciesfailed, Exceptionsbrowser, Exceptionscount, Exceptionsserver, PageViewscount, PageViewsduration, PerformanceCountersexceptionsPerSecond, PerformanceCountersmemoryAvailableBytes, PerformanceCountersprocessCPUPercentage, PerformanceCountersprocessIOBytesPerSecond, PerformanceCountersprocessorCPUPercentage, PerformanceCountersprocessPrivateBytes, PerformanceCountersrequestExecutionTime, PerformanceCountersrequestsInQueue, PerformanceCountersrequestsPerSecond, Requestscount, Requestsduration, Requestsfailed, Sessionscount, Usersauthenticated, Userscount} return []MetricID{AvailabilityResultsavailabilityPercentage, AvailabilityResultsduration, BillingtelemetryCount, ClientnetworkDuration, ClientprocessingDuration, ClientreceiveDuration, ClientsendDuration, ClienttotalDuration, CustomEventscount, Dependenciescount, Dependenciesduration, Dependenciesfailed, Exceptionsbrowser, Exceptionscount, Exceptionsserver, PageViewscount, PageViewsduration, PerformanceCountersexceptionsPerSecond, PerformanceCountersmemoryAvailableBytes, PerformanceCountersprocessCPUPercentage, PerformanceCountersprocessIOBytesPerSecond, PerformanceCountersprocessorCPUPercentage, PerformanceCountersprocessPrivateBytes, PerformanceCountersrequestExecutionTime, PerformanceCountersrequestsInQueue, PerformanceCountersrequestsPerSecond, Requestscount, Requestsduration, Requestsfailed, Sessionscount, Usersauthenticated, Userscount}
} }
// MetricsAggregation enumerates the values for metrics aggregation.
type MetricsAggregation string
const (
// Avg ...
Avg MetricsAggregation = "avg"
// Count ...
Count MetricsAggregation = "count"
// Max ...
Max MetricsAggregation = "max"
// Min ...
Min MetricsAggregation = "min"
// Sum ...
Sum MetricsAggregation = "sum"
// Unique ...
Unique MetricsAggregation = "unique"
)
// PossibleMetricsAggregationValues returns an array of possible values for the MetricsAggregation const type.
func PossibleMetricsAggregationValues() []MetricsAggregation {
return []MetricsAggregation{Avg, Count, Max, Min, Sum, Unique}
}
// MetricsSegment enumerates the values for metrics segment.
type MetricsSegment string
const (
// ApplicationBuild ...
ApplicationBuild MetricsSegment = "applicationBuild"
// ApplicationVersion ...
ApplicationVersion MetricsSegment = "applicationVersion"
// AuthenticatedOrAnonymousTraffic ...
AuthenticatedOrAnonymousTraffic MetricsSegment = "authenticatedOrAnonymousTraffic"
// Browser ...
Browser MetricsSegment = "browser"
// BrowserVersion ...
BrowserVersion MetricsSegment = "browserVersion"
// City ...
City MetricsSegment = "city"
// CloudRoleName ...
CloudRoleName MetricsSegment = "cloudRoleName"
// CloudServiceName ...
CloudServiceName MetricsSegment = "cloudServiceName"
// Continent ...
Continent MetricsSegment = "continent"
// CountryOrRegion ...
CountryOrRegion MetricsSegment = "countryOrRegion"
// DeploymentID ...
DeploymentID MetricsSegment = "deploymentId"
// DeploymentUnit ...
DeploymentUnit MetricsSegment = "deploymentUnit"
// DeviceType ...
DeviceType MetricsSegment = "deviceType"
// Environment ...
Environment MetricsSegment = "environment"
// HostingLocation ...
HostingLocation MetricsSegment = "hostingLocation"
// InstanceName ...
InstanceName MetricsSegment = "instanceName"
)
// PossibleMetricsSegmentValues returns an array of possible values for the MetricsSegment const type.
func PossibleMetricsSegmentValues() []MetricsSegment {
return []MetricsSegment{ApplicationBuild, ApplicationVersion, AuthenticatedOrAnonymousTraffic, Browser, BrowserVersion, City, CloudRoleName, CloudServiceName, Continent, CountryOrRegion, DeploymentID, DeploymentUnit, DeviceType, Environment, HostingLocation, InstanceName}
}
// Type enumerates the values for type. // Type enumerates the values for type.
type Type string type Type string
@ -741,7 +807,7 @@ type EventsCustomMetricInfo struct {
// ValueSum - The sum of the custom metric // ValueSum - The sum of the custom metric
ValueSum *float64 `json:"valueSum,omitempty"` ValueSum *float64 `json:"valueSum,omitempty"`
// ValueCount - The count of the custom metric // ValueCount - The count of the custom metric
ValueCount *float64 `json:"valueCount,omitempty"` ValueCount *int32 `json:"valueCount,omitempty"`
// ValueMin - The minimum value of the custom metric // ValueMin - The minimum value of the custom metric
ValueMin *float64 `json:"valueMin,omitempty"` ValueMin *float64 `json:"valueMin,omitempty"`
// ValueMax - The maximum value of the custom metric // ValueMax - The maximum value of the custom metric
@ -1423,7 +1489,7 @@ func (epvr EventsPageViewResult) AsBasicEventsResultData() (BasicEventsResultDat
// EventsPerformanceCounterInfo the performance counter info // EventsPerformanceCounterInfo the performance counter info
type EventsPerformanceCounterInfo struct { type EventsPerformanceCounterInfo struct {
// Value - The value of the performance counter // Value - The value of the performance counter
Value *int64 `json:"value,omitempty"` Value *float64 `json:"value,omitempty"`
// Name - The name of the performance counter // Name - The name of the performance counter
Name *string `json:"name,omitempty"` Name *string `json:"name,omitempty"`
// Category - The category of the performance counter // Category - The category of the performance counter
@ -2242,14 +2308,14 @@ type MetricsPostBodySchema struct {
// MetricsPostBodySchemaParameters the parameters for a single metrics query // MetricsPostBodySchemaParameters the parameters for a single metrics query
type MetricsPostBodySchemaParameters struct { type MetricsPostBodySchemaParameters struct {
// MetricID - Possible values include: 'Requestscount', 'Requestsduration', 'Requestsfailed', 'Userscount', 'Usersauthenticated', 'PageViewscount', 'PageViewsduration', 'ClientprocessingDuration', 'ClientreceiveDuration', 'ClientnetworkDuration', 'ClientsendDuration', 'ClienttotalDuration', 'Dependenciescount', 'Dependenciesfailed', 'Dependenciesduration', 'Exceptionscount', 'Exceptionsbrowser', 'Exceptionsserver', 'Sessionscount', 'PerformanceCountersrequestExecutionTime', 'PerformanceCountersrequestsPerSecond', 'PerformanceCountersrequestsInQueue', 'PerformanceCountersmemoryAvailableBytes', 'PerformanceCountersexceptionsPerSecond', 'PerformanceCountersprocessCPUPercentage', 'PerformanceCountersprocessIOBytesPerSecond', 'PerformanceCountersprocessPrivateBytes', 'PerformanceCountersprocessorCPUPercentage', 'AvailabilityResultsavailabilityPercentage', 'AvailabilityResultsduration', 'BillingtelemetryCount', 'CustomEventscount' // MetricID - Possible values include: 'Requestscount', 'Requestsduration', 'Requestsfailed', 'Userscount', 'Usersauthenticated', 'PageViewscount', 'PageViewsduration', 'ClientprocessingDuration', 'ClientreceiveDuration', 'ClientnetworkDuration', 'ClientsendDuration', 'ClienttotalDuration', 'Dependenciescount', 'Dependenciesfailed', 'Dependenciesduration', 'Exceptionscount', 'Exceptionsbrowser', 'Exceptionsserver', 'Sessionscount', 'PerformanceCountersrequestExecutionTime', 'PerformanceCountersrequestsPerSecond', 'PerformanceCountersrequestsInQueue', 'PerformanceCountersmemoryAvailableBytes', 'PerformanceCountersexceptionsPerSecond', 'PerformanceCountersprocessCPUPercentage', 'PerformanceCountersprocessIOBytesPerSecond', 'PerformanceCountersprocessPrivateBytes', 'PerformanceCountersprocessorCPUPercentage', 'AvailabilityResultsavailabilityPercentage', 'AvailabilityResultsduration', 'BillingtelemetryCount', 'CustomEventscount'
MetricID MetricID `json:"metricId,omitempty"` MetricID MetricID `json:"metricId,omitempty"`
Timespan *string `json:"timespan,omitempty"` Timespan *string `json:"timespan,omitempty"`
Aggregation *[]string `json:"aggregation,omitempty"` Aggregation *[]MetricsAggregation `json:"aggregation,omitempty"`
Interval *string `json:"interval,omitempty"` Interval *string `json:"interval,omitempty"`
Segment *[]string `json:"segment,omitempty"` Segment *[]MetricsSegment `json:"segment,omitempty"`
Top *int32 `json:"top,omitempty"` Top *int32 `json:"top,omitempty"`
Orderby *string `json:"orderby,omitempty"` Orderby *string `json:"orderby,omitempty"`
Filter *string `json:"filter,omitempty"` Filter *string `json:"filter,omitempty"`
} }
// MetricsResult a metric result. // MetricsResult a metric result.
@ -2333,13 +2399,14 @@ func (msi MetricsSegmentInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(objectMap) return json.Marshal(objectMap)
} }
// QueryBody query request body // QueryBody the Analytics query. Learn more about the [Analytics query
// syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
type QueryBody struct { type QueryBody struct {
// Query - The query to execute. // Query - The query to execute.
Query *string `json:"query,omitempty"` Query *string `json:"query,omitempty"`
// Timespan - Optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the query expression. // Timespan - Optional. The timespan over which to query data. This is an ISO8601 time period value. This timespan is applied in addition to any that are specified in the query expression.
Timespan *string `json:"timespan,omitempty"` Timespan *string `json:"timespan,omitempty"`
// Applications - A list of applications that are included in the query. // Applications - A list of Application IDs for cross-application queries.
Applications *[]string `json:"applications,omitempty"` Applications *[]string `json:"applications,omitempty"`
} }

View file

@ -0,0 +1,112 @@
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
)
// QueryClient is the composite Swagger for Application Insights Data Client
type QueryClient struct {
BaseClient
}
// NewQueryClient creates an instance of the QueryClient client.
func NewQueryClient() QueryClient {
return NewQueryClientWithBaseURI(DefaultBaseURI)
}
// NewQueryClientWithBaseURI creates an instance of the QueryClient client.
func NewQueryClientWithBaseURI(baseURI string) QueryClient {
return QueryClient{NewWithBaseURI(baseURI)}
}
// Execute executes an Analytics query for data.
// [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an
// Analytics query.
// Parameters:
// appID - ID of the application. This is Application ID from the API Access settings blade in the Azure
// portal.
// body - the Analytics query. Learn more about the [Analytics query
// syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
func (client QueryClient) Execute(ctx context.Context, appID string, body QueryBody) (result QueryResults, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: body,
Constraints: []validation.Constraint{{Target: "body.Query", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
return result, validation.NewError("insights.QueryClient", "Execute", err.Error())
}
req, err := client.ExecutePreparer(ctx, appID, body)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.QueryClient", "Execute", nil, "Failure preparing request")
return
}
resp, err := client.ExecuteSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "insights.QueryClient", "Execute", resp, "Failure sending request")
return
}
result, err = client.ExecuteResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "insights.QueryClient", "Execute", resp, "Failure responding to request")
}
return
}
// ExecutePreparer prepares the Execute request.
func (client QueryClient) ExecutePreparer(ctx context.Context, appID string, body QueryBody) (*http.Request, error) {
pathParameters := map[string]interface{}{
"appId": autorest.Encode("path", appID),
}
preparer := autorest.CreatePreparer(
autorest.AsContentType("application/json; charset=utf-8"),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/apps/{appId}/query", pathParameters),
autorest.WithJSON(body))
return preparer.Prepare((&http.Request{}).WithContext(ctx))
}
// ExecuteSender sends the Execute request. The method will close the
// http.Response Body if it receives an error.
func (client QueryClient) ExecuteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ExecuteResponder handles the response to the Execute request. The method always
// closes the http.Response Body.
func (client QueryClient) ExecuteResponder(resp *http.Response) (result QueryResults, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}

View file

@ -41,13 +41,16 @@ func NewAccountClientWithBaseURI(baseURI string, subscriptionID string) AccountC
} }
// CreateOrUpdate create or update automation account. // CreateOrUpdate create or update automation account.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is parameters supplied to the create or // resourceGroupName - name of an Azure Resource group.
// update automation account. parameters is parameters supplied to the create or update automation account. // automationAccountName - the name of the automation account.
// parameters - parameters supplied to the create or update automation account.
func (client AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountCreateOrUpdateParameters) (result Account, err error) { func (client AccountClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountCreateOrUpdateParameters) (result Account, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "CreateOrUpdate", err.Error()) return result, validation.NewError("automation.AccountClient", "CreateOrUpdate", err.Error())
} }
@ -116,12 +119,15 @@ func (client AccountClient) CreateOrUpdateResponder(resp *http.Response) (result
} }
// Delete delete an automation account. // Delete delete an automation account.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client AccountClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string) (result autorest.Response, err error) { func (client AccountClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "Delete", err.Error()) return result, validation.NewError("automation.AccountClient", "Delete", err.Error())
} }
@ -187,12 +193,15 @@ func (client AccountClient) DeleteResponder(resp *http.Response) (result autores
} }
// Get get information about an Automation Account. // Get get information about an Automation Account.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client AccountClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result Account, err error) { func (client AccountClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result Account, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "Get", err.Error()) return result, validation.NewError("automation.AccountClient", "Get", err.Error())
} }
@ -349,12 +358,14 @@ func (client AccountClient) ListComplete(ctx context.Context) (result AccountLis
} }
// ListByResourceGroup retrieve a list of accounts within a given resource group. // ListByResourceGroup retrieve a list of accounts within a given resource group.
// // Parameters:
// resourceGroupName is the resource group name. // resourceGroupName - name of an Azure Resource group.
func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error) { func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "ListByResourceGroup", err.Error()) return result, validation.NewError("automation.AccountClient", "ListByResourceGroup", err.Error())
} }
@ -448,13 +459,16 @@ func (client AccountClient) ListByResourceGroupComplete(ctx context.Context, res
} }
// Update update an automation account. // Update update an automation account.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is automation account name. parameters is // resourceGroupName - name of an Azure Resource group.
// parameters supplied to the update automation account. // automationAccountName - the name of the automation account.
// parameters - parameters supplied to the update automation account.
func (client AccountClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountUpdateParameters) (result Account, err error) { func (client AccountClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AccountUpdateParameters) (result Account, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AccountClient", "Update", err.Error()) return result, validation.NewError("automation.AccountClient", "Update", err.Error())
} }

View file

@ -41,13 +41,17 @@ func NewActivityClientWithBaseURI(baseURI string, subscriptionID string) Activit
} }
// Get retrieve the activity in the module identified by module name and activity name. // Get retrieve the activity in the module identified by module name and activity name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName // resourceGroupName - name of an Azure Resource group.
// is the name of module. activityName is the name of activity. // automationAccountName - the name of the automation account.
// moduleName - the name of module.
// activityName - the name of activity.
func (client ActivityClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, activityName string) (result Activity, err error) { func (client ActivityClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, activityName string) (result Activity, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ActivityClient", "Get", err.Error()) return result, validation.NewError("automation.ActivityClient", "Get", err.Error())
} }
@ -116,13 +120,16 @@ func (client ActivityClient) GetResponder(resp *http.Response) (result Activity,
} }
// ListByModule retrieve a list of activities in the module identified by module name. // ListByModule retrieve a list of activities in the module identified by module name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName // resourceGroupName - name of an Azure Resource group.
// is the name of module. // automationAccountName - the name of the automation account.
// moduleName - the name of module.
func (client ActivityClient) ListByModule(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result ActivityListResultPage, err error) { func (client ActivityClient) ListByModule(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result ActivityListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ActivityClient", "ListByModule", err.Error()) return result, validation.NewError("automation.ActivityClient", "ListByModule", err.Error())
} }

View file

@ -42,12 +42,15 @@ func NewAgentRegistrationInformationClientWithBaseURI(baseURI string, subscripti
} }
// Get retrieve the automation agent registration information. // Get retrieve the automation agent registration information.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client AgentRegistrationInformationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result AgentRegistration, err error) { func (client AgentRegistrationInformationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result AgentRegistration, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AgentRegistrationInformationClient", "Get", err.Error()) return result, validation.NewError("automation.AgentRegistrationInformationClient", "Get", err.Error())
} }
@ -114,13 +117,16 @@ func (client AgentRegistrationInformationClient) GetResponder(resp *http.Respons
} }
// RegenerateKey regenerate a primary or secondary agent registration key // RegenerateKey regenerate a primary or secondary agent registration key
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. parameters // resourceGroupName - name of an Azure Resource group.
// is the name of the agent registration key to be regenerated // automationAccountName - the name of the automation account.
// parameters - the name of the agent registration key to be regenerated
func (client AgentRegistrationInformationClient) RegenerateKey(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AgentRegistrationRegenerateKeyParameter) (result AgentRegistration, err error) { func (client AgentRegistrationInformationClient) RegenerateKey(ctx context.Context, resourceGroupName string, automationAccountName string, parameters AgentRegistrationRegenerateKeyParameter) (result AgentRegistration, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.AgentRegistrationInformationClient", "RegenerateKey", err.Error()) return result, validation.NewError("automation.AgentRegistrationInformationClient", "RegenerateKey", err.Error())
} }

View file

@ -41,14 +41,17 @@ func NewCertificateClientWithBaseURI(baseURI string, subscriptionID string) Cert
} }
// CreateOrUpdate create a certificate. // CreateOrUpdate create a certificate.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// certificateName is the parameters supplied to the create or update certificate operation. parameters is the // automationAccountName - the name of the automation account.
// parameters supplied to the create or update certificate operation. // certificateName - the parameters supplied to the create or update certificate operation.
// parameters - the parameters supplied to the create or update certificate operation.
func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateCreateOrUpdateParameters) (result Certificate, err error) { func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateCreateOrUpdateParameters) (result Certificate, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil}, Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
{Target: "parameters.CertificateCreateOrUpdateProperties", Name: validation.Null, Rule: true, {Target: "parameters.CertificateCreateOrUpdateProperties", Name: validation.Null, Rule: true,
@ -122,13 +125,16 @@ func (client CertificateClient) CreateOrUpdateResponder(resp *http.Response) (re
} }
// Delete delete the certificate. // Delete delete the certificate.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// certificateName is the name of certificate. // automationAccountName - the name of the automation account.
// certificateName - the name of certificate.
func (client CertificateClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (result autorest.Response, err error) { func (client CertificateClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.CertificateClient", "Delete", err.Error()) return result, validation.NewError("automation.CertificateClient", "Delete", err.Error())
} }
@ -195,13 +201,16 @@ func (client CertificateClient) DeleteResponder(resp *http.Response) (result aut
} }
// Get retrieve the certificate identified by certificate name. // Get retrieve the certificate identified by certificate name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// certificateName is the name of certificate. // automationAccountName - the name of the automation account.
// certificateName - the name of certificate.
func (client CertificateClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (result Certificate, err error) { func (client CertificateClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string) (result Certificate, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.CertificateClient", "Get", err.Error()) return result, validation.NewError("automation.CertificateClient", "Get", err.Error())
} }
@ -269,12 +278,15 @@ func (client CertificateClient) GetResponder(resp *http.Response) (result Certif
} }
// ListByAutomationAccount retrieve a list of certificates. // ListByAutomationAccount retrieve a list of certificates.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client CertificateClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result CertificateListResultPage, err error) { func (client CertificateClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result CertificateListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.CertificateClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.CertificateClient", "ListByAutomationAccount", err.Error())
} }
@ -369,14 +381,17 @@ func (client CertificateClient) ListByAutomationAccountComplete(ctx context.Cont
} }
// Update update a certificate. // Update update a certificate.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// certificateName is the parameters supplied to the update certificate operation. parameters is the parameters // automationAccountName - the name of the automation account.
// supplied to the update certificate operation. // certificateName - the parameters supplied to the update certificate operation.
// parameters - the parameters supplied to the update certificate operation.
func (client CertificateClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateUpdateParameters) (result Certificate, err error) { func (client CertificateClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, certificateName string, parameters CertificateUpdateParameters) (result Certificate, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.CertificateClient", "Update", err.Error()) return result, validation.NewError("automation.CertificateClient", "Update", err.Error())
} }

View file

@ -41,14 +41,17 @@ func NewConnectionClientWithBaseURI(baseURI string, subscriptionID string) Conne
} }
// CreateOrUpdate create or update a connection. // CreateOrUpdate create or update a connection.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// connectionName is the parameters supplied to the create or update connection operation. parameters is the // automationAccountName - the name of the automation account.
// parameters supplied to the create or update connection operation. // connectionName - the parameters supplied to the create or update connection operation.
// parameters - the parameters supplied to the create or update connection operation.
func (client ConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionCreateOrUpdateParameters) (result Connection, err error) { func (client ConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionCreateOrUpdateParameters) (result Connection, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil}, Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
{Target: "parameters.ConnectionCreateOrUpdateProperties", Name: validation.Null, Rule: true, {Target: "parameters.ConnectionCreateOrUpdateProperties", Name: validation.Null, Rule: true,
@ -122,13 +125,16 @@ func (client ConnectionClient) CreateOrUpdateResponder(resp *http.Response) (res
} }
// Delete delete the connection. // Delete delete the connection.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// connectionName is the name of connection. // automationAccountName - the name of the automation account.
// connectionName - the name of connection.
func (client ConnectionClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string) (result Connection, err error) { func (client ConnectionClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string) (result Connection, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ConnectionClient", "Delete", err.Error()) return result, validation.NewError("automation.ConnectionClient", "Delete", err.Error())
} }
@ -196,13 +202,16 @@ func (client ConnectionClient) DeleteResponder(resp *http.Response) (result Conn
} }
// Get retrieve the connection identified by connection name. // Get retrieve the connection identified by connection name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// connectionName is the name of connection. // automationAccountName - the name of the automation account.
// connectionName - the name of connection.
func (client ConnectionClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string) (result Connection, err error) { func (client ConnectionClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string) (result Connection, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ConnectionClient", "Get", err.Error()) return result, validation.NewError("automation.ConnectionClient", "Get", err.Error())
} }
@ -270,12 +279,15 @@ func (client ConnectionClient) GetResponder(resp *http.Response) (result Connect
} }
// ListByAutomationAccount retrieve a list of connections. // ListByAutomationAccount retrieve a list of connections.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client ConnectionClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ConnectionListResultPage, err error) { func (client ConnectionClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ConnectionListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ConnectionClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.ConnectionClient", "ListByAutomationAccount", err.Error())
} }
@ -370,14 +382,17 @@ func (client ConnectionClient) ListByAutomationAccountComplete(ctx context.Conte
} }
// Update update a connection. // Update update a connection.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// connectionName is the parameters supplied to the update a connection operation. parameters is the parameters // automationAccountName - the name of the automation account.
// supplied to the update a connection operation. // connectionName - the parameters supplied to the update a connection operation.
// parameters - the parameters supplied to the update a connection operation.
func (client ConnectionClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionUpdateParameters) (result Connection, err error) { func (client ConnectionClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, connectionName string, parameters ConnectionUpdateParameters) (result Connection, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ConnectionClient", "Update", err.Error()) return result, validation.NewError("automation.ConnectionClient", "Update", err.Error())
} }

View file

@ -41,14 +41,17 @@ func NewConnectionTypeClientWithBaseURI(baseURI string, subscriptionID string) C
} }
// CreateOrUpdate create a connectiontype. // CreateOrUpdate create a connectiontype.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// connectionTypeName is the parameters supplied to the create or update connectiontype operation. parameters is // automationAccountName - the name of the automation account.
// the parameters supplied to the create or update connectiontype operation. // connectionTypeName - the parameters supplied to the create or update connectiontype operation.
// parameters - the parameters supplied to the create or update connectiontype operation.
func (client ConnectionTypeClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string, parameters ConnectionTypeCreateOrUpdateParameters) (result ConnectionType, err error) { func (client ConnectionTypeClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string, parameters ConnectionTypeCreateOrUpdateParameters) (result ConnectionType, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil}, Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
{Target: "parameters.ConnectionTypeCreateOrUpdateProperties", Name: validation.Null, Rule: true, {Target: "parameters.ConnectionTypeCreateOrUpdateProperties", Name: validation.Null, Rule: true,
@ -122,13 +125,16 @@ func (client ConnectionTypeClient) CreateOrUpdateResponder(resp *http.Response)
} }
// Delete delete the connectiontype. // Delete delete the connectiontype.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// connectionTypeName is the name of connectiontype. // automationAccountName - the name of the automation account.
// connectionTypeName - the name of connectiontype.
func (client ConnectionTypeClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string) (result autorest.Response, err error) { func (client ConnectionTypeClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ConnectionTypeClient", "Delete", err.Error()) return result, validation.NewError("automation.ConnectionTypeClient", "Delete", err.Error())
} }
@ -195,13 +201,16 @@ func (client ConnectionTypeClient) DeleteResponder(resp *http.Response) (result
} }
// Get retrieve the connectiontype identified by connectiontype name. // Get retrieve the connectiontype identified by connectiontype name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// connectionTypeName is the name of connectiontype. // automationAccountName - the name of the automation account.
// connectionTypeName - the name of connectiontype.
func (client ConnectionTypeClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string) (result ConnectionType, err error) { func (client ConnectionTypeClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, connectionTypeName string) (result ConnectionType, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ConnectionTypeClient", "Get", err.Error()) return result, validation.NewError("automation.ConnectionTypeClient", "Get", err.Error())
} }
@ -269,12 +278,15 @@ func (client ConnectionTypeClient) GetResponder(resp *http.Response) (result Con
} }
// ListByAutomationAccount retrieve a list of connectiontypes. // ListByAutomationAccount retrieve a list of connectiontypes.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ConnectionTypeListResultPage, err error) { func (client ConnectionTypeClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ConnectionTypeListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ConnectionTypeClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.ConnectionTypeClient", "ListByAutomationAccount", err.Error())
} }

View file

@ -41,14 +41,17 @@ func NewCredentialClientWithBaseURI(baseURI string, subscriptionID string) Crede
} }
// CreateOrUpdate create a credential. // CreateOrUpdate create a credential.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// credentialName is the parameters supplied to the create or update credential operation. parameters is the // automationAccountName - the name of the automation account.
// parameters supplied to the create or update credential operation. // credentialName - the parameters supplied to the create or update credential operation.
// parameters - the parameters supplied to the create or update credential operation.
func (client CredentialClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialCreateOrUpdateParameters) (result Credential, err error) { func (client CredentialClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialCreateOrUpdateParameters) (result Credential, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil}, Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
{Target: "parameters.CredentialCreateOrUpdateProperties", Name: validation.Null, Rule: true, {Target: "parameters.CredentialCreateOrUpdateProperties", Name: validation.Null, Rule: true,
@ -124,13 +127,16 @@ func (client CredentialClient) CreateOrUpdateResponder(resp *http.Response) (res
} }
// Delete delete the credential. // Delete delete the credential.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// credentialName is the name of credential. // automationAccountName - the name of the automation account.
// credentialName - the name of credential.
func (client CredentialClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string) (result autorest.Response, err error) { func (client CredentialClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.CredentialClient", "Delete", err.Error()) return result, validation.NewError("automation.CredentialClient", "Delete", err.Error())
} }
@ -197,13 +203,16 @@ func (client CredentialClient) DeleteResponder(resp *http.Response) (result auto
} }
// Get retrieve the credential identified by credential name. // Get retrieve the credential identified by credential name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// credentialName is the name of credential. // automationAccountName - the name of the automation account.
// credentialName - the name of credential.
func (client CredentialClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string) (result Credential, err error) { func (client CredentialClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string) (result Credential, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.CredentialClient", "Get", err.Error()) return result, validation.NewError("automation.CredentialClient", "Get", err.Error())
} }
@ -271,12 +280,15 @@ func (client CredentialClient) GetResponder(resp *http.Response) (result Credent
} }
// ListByAutomationAccount retrieve a list of credentials. // ListByAutomationAccount retrieve a list of credentials.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client CredentialClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result CredentialListResultPage, err error) { func (client CredentialClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result CredentialListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.CredentialClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.CredentialClient", "ListByAutomationAccount", err.Error())
} }
@ -371,14 +383,17 @@ func (client CredentialClient) ListByAutomationAccountComplete(ctx context.Conte
} }
// Update update a credential. // Update update a credential.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// credentialName is the parameters supplied to the Update credential operation. parameters is the parameters // automationAccountName - the name of the automation account.
// supplied to the Update credential operation. // credentialName - the parameters supplied to the Update credential operation.
// parameters - the parameters supplied to the Update credential operation.
func (client CredentialClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialUpdateParameters) (result Credential, err error) { func (client CredentialClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, credentialName string, parameters CredentialUpdateParameters) (result Credential, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.CredentialClient", "Update", err.Error()) return result, validation.NewError("automation.CredentialClient", "Update", err.Error())
} }

View file

@ -42,14 +42,17 @@ func NewDscCompilationJobClientWithBaseURI(baseURI string, subscriptionID string
} }
// Create creates the Dsc compilation job of the configuration. // Create creates the Dsc compilation job of the configuration.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// compilationJobID is the the DSC configuration Id. parameters is the parameters supplied to the create // automationAccountName - the name of the automation account.
// compilation job operation. // compilationJobID - the the DSC configuration Id.
// parameters - the parameters supplied to the create compilation job operation.
func (client DscCompilationJobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobID uuid.UUID, parameters DscCompilationJobCreateParameters) (result DscCompilationJob, err error) { func (client DscCompilationJobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobID uuid.UUID, parameters DscCompilationJobCreateParameters) (result DscCompilationJob, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.DscCompilationJobCreateProperties", Name: validation.Null, Rule: true, Constraints: []validation.Constraint{{Target: "parameters.DscCompilationJobCreateProperties", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.DscCompilationJobCreateProperties.Configuration", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { Chain: []validation.Constraint{{Target: "parameters.DscCompilationJobCreateProperties.Configuration", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
@ -122,13 +125,16 @@ func (client DscCompilationJobClient) CreateResponder(resp *http.Response) (resu
} }
// Get retrieve the Dsc configuration compilation job identified by job id. // Get retrieve the Dsc configuration compilation job identified by job id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// compilationJobID is the Dsc configuration compilation job id. // automationAccountName - the name of the automation account.
// compilationJobID - the Dsc configuration compilation job id.
func (client DscCompilationJobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobID uuid.UUID) (result DscCompilationJob, err error) { func (client DscCompilationJobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, compilationJobID uuid.UUID) (result DscCompilationJob, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscCompilationJobClient", "Get", err.Error()) return result, validation.NewError("automation.DscCompilationJobClient", "Get", err.Error())
} }
@ -196,13 +202,17 @@ func (client DscCompilationJobClient) GetResponder(resp *http.Response) (result
} }
// GetStream retrieve the job stream identified by job stream id. // GetStream retrieve the job stream identified by job stream id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. jobStreamID is the job stream id. // automationAccountName - the name of the automation account.
// jobID - the job id.
// jobStreamID - the job stream id.
func (client DscCompilationJobClient) GetStream(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID, jobStreamID string) (result JobStream, err error) { func (client DscCompilationJobClient) GetStream(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID, jobStreamID string) (result JobStream, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscCompilationJobClient", "GetStream", err.Error()) return result, validation.NewError("automation.DscCompilationJobClient", "GetStream", err.Error())
} }
@ -271,13 +281,16 @@ func (client DscCompilationJobClient) GetStreamResponder(resp *http.Response) (r
} }
// ListByAutomationAccount retrieve a list of dsc compilation jobs. // ListByAutomationAccount retrieve a list of dsc compilation jobs.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is // resourceGroupName - name of an Azure Resource group.
// the filter to apply on the operation. // automationAccountName - the name of the automation account.
// filter - the filter to apply on the operation.
func (client DscCompilationJobClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result DscCompilationJobListResultPage, err error) { func (client DscCompilationJobClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result DscCompilationJobListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscCompilationJobClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.DscCompilationJobClient", "ListByAutomationAccount", err.Error())
} }

View file

@ -42,13 +42,16 @@ func NewDscCompilationJobStreamClientWithBaseURI(baseURI string, subscriptionID
} }
// ListByJob retrieve all the job streams for the compilation Job. // ListByJob retrieve all the job streams for the compilation Job.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. // automationAccountName - the name of the automation account.
// jobID - the job id.
func (client DscCompilationJobStreamClient) ListByJob(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result JobStreamListResult, err error) { func (client DscCompilationJobStreamClient) ListByJob(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result JobStreamListResult, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscCompilationJobStreamClient", "ListByJob", err.Error()) return result, validation.NewError("automation.DscCompilationJobStreamClient", "ListByJob", err.Error())
} }

View file

@ -41,14 +41,17 @@ func NewDscConfigurationClientWithBaseURI(baseURI string, subscriptionID string)
} }
// CreateOrUpdate create the configuration identified by configuration name. // CreateOrUpdate create the configuration identified by configuration name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// configurationName is the create or update parameters for configuration. parameters is the create or update // automationAccountName - the name of the automation account.
// parameters for configuration. // configurationName - the create or update parameters for configuration.
// parameters - the create or update parameters for configuration.
func (client DscConfigurationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters DscConfigurationCreateOrUpdateParameters) (result DscConfiguration, err error) { func (client DscConfigurationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters DscConfigurationCreateOrUpdateParameters) (result DscConfiguration, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.DscConfigurationCreateOrUpdateProperties", Name: validation.Null, Rule: true, Constraints: []validation.Constraint{{Target: "parameters.DscConfigurationCreateOrUpdateProperties", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.DscConfigurationCreateOrUpdateProperties.Source", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "parameters.DscConfigurationCreateOrUpdateProperties.Source", Name: validation.Null, Rule: true,
@ -127,13 +130,16 @@ func (client DscConfigurationClient) CreateOrUpdateResponder(resp *http.Response
} }
// Delete delete the dsc configuration identified by configuration name. // Delete delete the dsc configuration identified by configuration name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// configurationName is the configuration name. // automationAccountName - the name of the automation account.
// configurationName - the configuration name.
func (client DscConfigurationClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (result autorest.Response, err error) { func (client DscConfigurationClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscConfigurationClient", "Delete", err.Error()) return result, validation.NewError("automation.DscConfigurationClient", "Delete", err.Error())
} }
@ -200,13 +206,16 @@ func (client DscConfigurationClient) DeleteResponder(resp *http.Response) (resul
} }
// Get retrieve the configuration identified by configuration name. // Get retrieve the configuration identified by configuration name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// configurationName is the configuration name. // automationAccountName - the name of the automation account.
// configurationName - the configuration name.
func (client DscConfigurationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (result DscConfiguration, err error) { func (client DscConfigurationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (result DscConfiguration, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscConfigurationClient", "Get", err.Error()) return result, validation.NewError("automation.DscConfigurationClient", "Get", err.Error())
} }
@ -274,13 +283,16 @@ func (client DscConfigurationClient) GetResponder(resp *http.Response) (result D
} }
// GetContent retrieve the configuration script identified by configuration name. // GetContent retrieve the configuration script identified by configuration name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// configurationName is the configuration name. // automationAccountName - the name of the automation account.
// configurationName - the configuration name.
func (client DscConfigurationClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (result String, err error) { func (client DscConfigurationClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string) (result String, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscConfigurationClient", "GetContent", err.Error()) return result, validation.NewError("automation.DscConfigurationClient", "GetContent", err.Error())
} }
@ -348,17 +360,24 @@ func (client DscConfigurationClient) GetContentResponder(resp *http.Response) (r
} }
// ListByAutomationAccount retrieve a list of configurations. // ListByAutomationAccount retrieve a list of configurations.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
func (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result DscConfigurationListResultPage, err error) { // automationAccountName - the name of the automation account.
// filter - the filter to apply on the operation.
// skip - the number of rows to skip.
// top - the the number of rows to take.
// inlinecount - return total rows.
func (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (result DscConfigurationListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscConfigurationClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.DscConfigurationClient", "ListByAutomationAccount", err.Error())
} }
result.fn = client.listByAutomationAccountNextResults result.fn = client.listByAutomationAccountNextResults
req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName) req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName, filter, skip, top, inlinecount)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "ListByAutomationAccount", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "ListByAutomationAccount", nil, "Failure preparing request")
return return
@ -380,7 +399,7 @@ func (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context
} }
// ListByAutomationAccountPreparer prepares the ListByAutomationAccount request. // ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client DscConfigurationClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error) { func (client DscConfigurationClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (*http.Request, error) {
pathParameters := map[string]interface{}{ pathParameters := map[string]interface{}{
"automationAccountName": autorest.Encode("path", automationAccountName), "automationAccountName": autorest.Encode("path", automationAccountName),
"resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceGroupName": autorest.Encode("path", resourceGroupName),
@ -391,6 +410,18 @@ func (client DscConfigurationClient) ListByAutomationAccountPreparer(ctx context
queryParameters := map[string]interface{}{ queryParameters := map[string]interface{}{
"api-version": APIVersion, "api-version": APIVersion,
} }
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
if skip != nil {
queryParameters["$skip"] = autorest.Encode("query", *skip)
}
if top != nil {
queryParameters["$top"] = autorest.Encode("query", *top)
}
if len(inlinecount) > 0 {
queryParameters["$inlinecount"] = autorest.Encode("query", inlinecount)
}
preparer := autorest.CreatePreparer( preparer := autorest.CreatePreparer(
autorest.AsGet(), autorest.AsGet(),
@ -442,20 +473,23 @@ func (client DscConfigurationClient) listByAutomationAccountNextResults(lastResu
} }
// ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required. // ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client DscConfigurationClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result DscConfigurationListResultIterator, err error) { func (client DscConfigurationClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string, skip *int32, top *int32, inlinecount string) (result DscConfigurationListResultIterator, err error) {
result.page, err = client.ListByAutomationAccount(ctx, resourceGroupName, automationAccountName) result.page, err = client.ListByAutomationAccount(ctx, resourceGroupName, automationAccountName, filter, skip, top, inlinecount)
return return
} }
// Update create the configuration identified by configuration name. // Update create the configuration identified by configuration name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// configurationName is the create or update parameters for configuration. parameters is the create or update // automationAccountName - the name of the automation account.
// parameters for configuration. // configurationName - the create or update parameters for configuration.
// parameters - the create or update parameters for configuration.
func (client DscConfigurationClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters *DscConfigurationUpdateParameters) (result DscConfiguration, err error) { func (client DscConfigurationClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, configurationName string, parameters *DscConfigurationUpdateParameters) (result DscConfiguration, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscConfigurationClient", "Update", err.Error()) return result, validation.NewError("automation.DscConfigurationClient", "Update", err.Error())
} }

View file

@ -41,13 +41,16 @@ func NewDscNodeClientWithBaseURI(baseURI string, subscriptionID string) DscNodeC
} }
// Delete delete the dsc node identified by node id. // Delete delete the dsc node identified by node id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is automation account name. nodeID is the // resourceGroupName - name of an Azure Resource group.
// node id. // automationAccountName - the name of the automation account.
// nodeID - the node id.
func (client DscNodeClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string) (result DscNode, err error) { func (client DscNodeClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string) (result DscNode, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscNodeClient", "Delete", err.Error()) return result, validation.NewError("automation.DscNodeClient", "Delete", err.Error())
} }
@ -115,13 +118,16 @@ func (client DscNodeClient) DeleteResponder(resp *http.Response) (result DscNode
} }
// Get retrieve the dsc node identified by node id. // Get retrieve the dsc node identified by node id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is // resourceGroupName - name of an Azure Resource group.
// the node id. // automationAccountName - the name of the automation account.
// nodeID - the node id.
func (client DscNodeClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string) (result DscNode, err error) { func (client DscNodeClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string) (result DscNode, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscNodeClient", "Get", err.Error()) return result, validation.NewError("automation.DscNodeClient", "Get", err.Error())
} }
@ -189,13 +195,16 @@ func (client DscNodeClient) GetResponder(resp *http.Response) (result DscNode, e
} }
// ListByAutomationAccount retrieve a list of dsc nodes. // ListByAutomationAccount retrieve a list of dsc nodes.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is // resourceGroupName - name of an Azure Resource group.
// the filter to apply on the operation. // automationAccountName - the name of the automation account.
// filter - the filter to apply on the operation.
func (client DscNodeClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result DscNodeListResultPage, err error) { func (client DscNodeClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result DscNodeListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscNodeClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.DscNodeClient", "ListByAutomationAccount", err.Error())
} }
@ -293,13 +302,17 @@ func (client DscNodeClient) ListByAutomationAccountComplete(ctx context.Context,
} }
// Update update the dsc node. // Update update the dsc node.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is // resourceGroupName - name of an Azure Resource group.
// parameters supplied to the update dsc node. parameters is parameters supplied to the update dsc node. // automationAccountName - the name of the automation account.
// nodeID - parameters supplied to the update dsc node.
// parameters - parameters supplied to the update dsc node.
func (client DscNodeClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, parameters DscNodeUpdateParameters) (result DscNode, err error) { func (client DscNodeClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, parameters DscNodeUpdateParameters) (result DscNode, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscNodeClient", "Update", err.Error()) return result, validation.NewError("automation.DscNodeClient", "Update", err.Error())
} }

View file

@ -41,14 +41,17 @@ func NewDscNodeConfigurationClientWithBaseURI(baseURI string, subscriptionID str
} }
// CreateOrUpdate create the node configuration identified by node configuration name. // CreateOrUpdate create the node configuration identified by node configuration name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// nodeConfigurationName is the create or update parameters for configuration. parameters is the create or update // automationAccountName - the name of the automation account.
// parameters for configuration. // nodeConfigurationName - the create or update parameters for configuration.
// parameters - the create or update parameters for configuration.
func (client DscNodeConfigurationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string, parameters DscNodeConfigurationCreateOrUpdateParameters) (result DscNodeConfiguration, err error) { func (client DscNodeConfigurationClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string, parameters DscNodeConfigurationCreateOrUpdateParameters) (result DscNodeConfiguration, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.Source", Name: validation.Null, Rule: true, Constraints: []validation.Constraint{{Target: "parameters.Source", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.Source.Hash", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.Source.Hash", Name: validation.Null, Rule: false,
@ -127,13 +130,16 @@ func (client DscNodeConfigurationClient) CreateOrUpdateResponder(resp *http.Resp
} }
// Delete delete the Dsc node configurations by node configuration. // Delete delete the Dsc node configurations by node configuration.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// nodeConfigurationName is the Dsc node configuration name. // automationAccountName - the name of the automation account.
// nodeConfigurationName - the Dsc node configuration name.
func (client DscNodeConfigurationClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string) (result autorest.Response, err error) { func (client DscNodeConfigurationClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscNodeConfigurationClient", "Delete", err.Error()) return result, validation.NewError("automation.DscNodeConfigurationClient", "Delete", err.Error())
} }
@ -200,13 +206,16 @@ func (client DscNodeConfigurationClient) DeleteResponder(resp *http.Response) (r
} }
// Get retrieve the Dsc node configurations by node configuration. // Get retrieve the Dsc node configurations by node configuration.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// nodeConfigurationName is the Dsc node configuration name. // automationAccountName - the name of the automation account.
// nodeConfigurationName - the Dsc node configuration name.
func (client DscNodeConfigurationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string) (result DscNodeConfiguration, err error) { func (client DscNodeConfigurationClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeConfigurationName string) (result DscNodeConfiguration, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscNodeConfigurationClient", "Get", err.Error()) return result, validation.NewError("automation.DscNodeConfigurationClient", "Get", err.Error())
} }
@ -274,13 +283,16 @@ func (client DscNodeConfigurationClient) GetResponder(resp *http.Response) (resu
} }
// ListByAutomationAccount retrieve a list of dsc node configurations. // ListByAutomationAccount retrieve a list of dsc node configurations.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is // resourceGroupName - name of an Azure Resource group.
// the filter to apply on the operation. // automationAccountName - the name of the automation account.
// filter - the filter to apply on the operation.
func (client DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result DscNodeConfigurationListResultPage, err error) { func (client DscNodeConfigurationClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result DscNodeConfigurationListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.DscNodeConfigurationClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.DscNodeConfigurationClient", "ListByAutomationAccount", err.Error())
} }

View file

@ -41,13 +41,17 @@ func NewFieldsClientWithBaseURI(baseURI string, subscriptionID string) FieldsCli
} }
// ListByType retrieve a list of fields of a given type identified by module name. // ListByType retrieve a list of fields of a given type identified by module name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName // resourceGroupName - name of an Azure Resource group.
// is the name of module. typeName is the name of type. // automationAccountName - the name of the automation account.
// moduleName - the name of module.
// typeName - the name of type.
func (client FieldsClient) ListByType(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, typeName string) (result TypeFieldListResult, err error) { func (client FieldsClient) ListByType(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, typeName string) (result TypeFieldListResult, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.FieldsClient", "ListByType", err.Error()) return result, validation.NewError("automation.FieldsClient", "ListByType", err.Error())
} }

View file

@ -41,13 +41,16 @@ func NewHybridRunbookWorkerGroupClientWithBaseURI(baseURI string, subscriptionID
} }
// Delete delete a hybrid runbook worker group. // Delete delete a hybrid runbook worker group.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is automation account name. // resourceGroupName - name of an Azure Resource group.
// hybridRunbookWorkerGroupName is the hybrid runbook worker group name // automationAccountName - the name of the automation account.
// hybridRunbookWorkerGroupName - the hybrid runbook worker group name
func (client HybridRunbookWorkerGroupClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string) (result autorest.Response, err error) { func (client HybridRunbookWorkerGroupClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.HybridRunbookWorkerGroupClient", "Delete", err.Error()) return result, validation.NewError("automation.HybridRunbookWorkerGroupClient", "Delete", err.Error())
} }
@ -114,13 +117,16 @@ func (client HybridRunbookWorkerGroupClient) DeleteResponder(resp *http.Response
} }
// Get retrieve a hybrid runbook worker group. // Get retrieve a hybrid runbook worker group.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// hybridRunbookWorkerGroupName is the hybrid runbook worker group name // automationAccountName - the name of the automation account.
// hybridRunbookWorkerGroupName - the hybrid runbook worker group name
func (client HybridRunbookWorkerGroupClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string) (result HybridRunbookWorkerGroup, err error) { func (client HybridRunbookWorkerGroupClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string) (result HybridRunbookWorkerGroup, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.HybridRunbookWorkerGroupClient", "Get", err.Error()) return result, validation.NewError("automation.HybridRunbookWorkerGroupClient", "Get", err.Error())
} }
@ -188,17 +194,21 @@ func (client HybridRunbookWorkerGroupClient) GetResponder(resp *http.Response) (
} }
// ListByAutomationAccount retrieve a list of hybrid runbook worker groups. // ListByAutomationAccount retrieve a list of hybrid runbook worker groups.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
func (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result HybridRunbookWorkerGroupsListResultPage, err error) { // automationAccountName - the name of the automation account.
// filter - the filter to apply on the operation.
func (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result HybridRunbookWorkerGroupsListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.HybridRunbookWorkerGroupClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.HybridRunbookWorkerGroupClient", "ListByAutomationAccount", err.Error())
} }
result.fn = client.listByAutomationAccountNextResults result.fn = client.listByAutomationAccountNextResults
req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName) req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName, filter)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "ListByAutomationAccount", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "ListByAutomationAccount", nil, "Failure preparing request")
return return
@ -220,7 +230,7 @@ func (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context
} }
// ListByAutomationAccountPreparer prepares the ListByAutomationAccount request. // ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client HybridRunbookWorkerGroupClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error) { func (client HybridRunbookWorkerGroupClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{ pathParameters := map[string]interface{}{
"automationAccountName": autorest.Encode("path", automationAccountName), "automationAccountName": autorest.Encode("path", automationAccountName),
"resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceGroupName": autorest.Encode("path", resourceGroupName),
@ -231,6 +241,9 @@ func (client HybridRunbookWorkerGroupClient) ListByAutomationAccountPreparer(ctx
queryParameters := map[string]interface{}{ queryParameters := map[string]interface{}{
"api-version": APIVersion, "api-version": APIVersion,
} }
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
preparer := autorest.CreatePreparer( preparer := autorest.CreatePreparer(
autorest.AsGet(), autorest.AsGet(),
@ -282,20 +295,23 @@ func (client HybridRunbookWorkerGroupClient) listByAutomationAccountNextResults(
} }
// ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required. // ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client HybridRunbookWorkerGroupClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result HybridRunbookWorkerGroupsListResultIterator, err error) { func (client HybridRunbookWorkerGroupClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result HybridRunbookWorkerGroupsListResultIterator, err error) {
result.page, err = client.ListByAutomationAccount(ctx, resourceGroupName, automationAccountName) result.page, err = client.ListByAutomationAccount(ctx, resourceGroupName, automationAccountName, filter)
return return
} }
// Update update a hybrid runbook worker group. // Update update a hybrid runbook worker group.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// hybridRunbookWorkerGroupName is the hybrid runbook worker group name parameters is the hybrid runbook worker // automationAccountName - the name of the automation account.
// group // hybridRunbookWorkerGroupName - the hybrid runbook worker group name
// parameters - the hybrid runbook worker group
func (client HybridRunbookWorkerGroupClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, parameters HybridRunbookWorkerGroupUpdateParameters) (result HybridRunbookWorkerGroup, err error) { func (client HybridRunbookWorkerGroupClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, hybridRunbookWorkerGroupName string, parameters HybridRunbookWorkerGroupUpdateParameters) (result HybridRunbookWorkerGroup, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.HybridRunbookWorkerGroupClient", "Update", err.Error()) return result, validation.NewError("automation.HybridRunbookWorkerGroupClient", "Update", err.Error())
} }

View file

@ -42,13 +42,17 @@ func NewJobClientWithBaseURI(baseURI string, subscriptionID string) JobClient {
} }
// Create create a job of the runbook. // Create create a job of the runbook.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. parameters is the parameters supplied to the create job operation. // automationAccountName - the name of the automation account.
// jobID - the job id.
// parameters - the parameters supplied to the create job operation.
func (client JobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID, parameters JobCreateParameters) (result Job, err error) { func (client JobClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID, parameters JobCreateParameters) (result Job, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.JobCreateProperties", Name: validation.Null, Rule: true, Constraints: []validation.Constraint{{Target: "parameters.JobCreateProperties", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.JobCreateProperties.Runbook", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { Chain: []validation.Constraint{{Target: "parameters.JobCreateProperties.Runbook", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil {
@ -121,13 +125,16 @@ func (client JobClient) CreateResponder(resp *http.Response) (result Job, err er
} }
// Get retrieve the job identified by job id. // Get retrieve the job identified by job id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. // automationAccountName - the name of the automation account.
// jobID - the job id.
func (client JobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result Job, err error) { func (client JobClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result Job, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobClient", "Get", err.Error()) return result, validation.NewError("automation.JobClient", "Get", err.Error())
} }
@ -195,13 +202,16 @@ func (client JobClient) GetResponder(resp *http.Response) (result Job, err error
} }
// GetOutput retrieve the job output identified by job id. // GetOutput retrieve the job output identified by job id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. // automationAccountName - the name of the automation account.
// jobID - the job id.
func (client JobClient) GetOutput(ctx context.Context, resourceGroupName string, automationAccountName string, jobID string) (result ReadCloser, err error) { func (client JobClient) GetOutput(ctx context.Context, resourceGroupName string, automationAccountName string, jobID string) (result ReadCloser, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobClient", "GetOutput", err.Error()) return result, validation.NewError("automation.JobClient", "GetOutput", err.Error())
} }
@ -268,13 +278,16 @@ func (client JobClient) GetOutputResponder(resp *http.Response) (result ReadClos
} }
// GetRunbookContent retrieve the runbook content of the job identified by job id. // GetRunbookContent retrieve the runbook content of the job identified by job id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. // automationAccountName - the name of the automation account.
// jobID - the job id.
func (client JobClient) GetRunbookContent(ctx context.Context, resourceGroupName string, automationAccountName string, jobID string) (result ReadCloser, err error) { func (client JobClient) GetRunbookContent(ctx context.Context, resourceGroupName string, automationAccountName string, jobID string) (result ReadCloser, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobClient", "GetRunbookContent", err.Error()) return result, validation.NewError("automation.JobClient", "GetRunbookContent", err.Error())
} }
@ -341,13 +354,16 @@ func (client JobClient) GetRunbookContentResponder(resp *http.Response) (result
} }
// ListByAutomationAccount retrieve a list of jobs. // ListByAutomationAccount retrieve a list of jobs.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is // resourceGroupName - name of an Azure Resource group.
// the filter to apply on the operation. // automationAccountName - the name of the automation account.
// filter - the filter to apply on the operation.
func (client JobClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result JobListResultPage, err error) { func (client JobClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result JobListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.JobClient", "ListByAutomationAccount", err.Error())
} }
@ -445,13 +461,16 @@ func (client JobClient) ListByAutomationAccountComplete(ctx context.Context, res
} }
// Resume resume the job identified by jobId. // Resume resume the job identified by jobId.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. // automationAccountName - the name of the automation account.
// jobID - the job id.
func (client JobClient) Resume(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result autorest.Response, err error) { func (client JobClient) Resume(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobClient", "Resume", err.Error()) return result, validation.NewError("automation.JobClient", "Resume", err.Error())
} }
@ -518,13 +537,16 @@ func (client JobClient) ResumeResponder(resp *http.Response) (result autorest.Re
} }
// Stop stop the job identified by jobId. // Stop stop the job identified by jobId.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. // automationAccountName - the name of the automation account.
// jobID - the job id.
func (client JobClient) Stop(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result autorest.Response, err error) { func (client JobClient) Stop(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobClient", "Stop", err.Error()) return result, validation.NewError("automation.JobClient", "Stop", err.Error())
} }
@ -591,13 +613,16 @@ func (client JobClient) StopResponder(resp *http.Response) (result autorest.Resp
} }
// Suspend suspend the job identified by jobId. // Suspend suspend the job identified by jobId.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. // automationAccountName - the name of the automation account.
// jobID - the job id.
func (client JobClient) Suspend(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result autorest.Response, err error) { func (client JobClient) Suspend(ctx context.Context, resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobClient", "Suspend", err.Error()) return result, validation.NewError("automation.JobClient", "Suspend", err.Error())
} }

View file

@ -43,14 +43,17 @@ func NewJobScheduleClientWithBaseURI(baseURI string, subscriptionID string) JobS
} }
// Create create a job schedule. // Create create a job schedule.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// jobScheduleID is the job schedule name. parameters is the parameters supplied to the create job schedule // automationAccountName - the name of the automation account.
// operation. // jobScheduleID - the job schedule name.
// parameters - the parameters supplied to the create job schedule operation.
func (client JobScheduleClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID, parameters JobScheduleCreateParameters) (result JobSchedule, err error) { func (client JobScheduleClient) Create(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID, parameters JobScheduleCreateParameters) (result JobSchedule, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.JobScheduleCreateProperties", Name: validation.Null, Rule: true, Constraints: []validation.Constraint{{Target: "parameters.JobScheduleCreateProperties", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.JobScheduleCreateProperties.Schedule", Name: validation.Null, Rule: true, Chain: nil}, Chain: []validation.Constraint{{Target: "parameters.JobScheduleCreateProperties.Schedule", Name: validation.Null, Rule: true, Chain: nil},
@ -125,13 +128,16 @@ func (client JobScheduleClient) CreateResponder(resp *http.Response) (result Job
} }
// Delete delete the job schedule identified by job schedule name. // Delete delete the job schedule identified by job schedule name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// jobScheduleID is the job schedule name. // automationAccountName - the name of the automation account.
// jobScheduleID - the job schedule name.
func (client JobScheduleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (result autorest.Response, err error) { func (client JobScheduleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobScheduleClient", "Delete", err.Error()) return result, validation.NewError("automation.JobScheduleClient", "Delete", err.Error())
} }
@ -198,13 +204,16 @@ func (client JobScheduleClient) DeleteResponder(resp *http.Response) (result aut
} }
// Get retrieve the job schedule identified by job schedule name. // Get retrieve the job schedule identified by job schedule name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// jobScheduleID is the job schedule name. // automationAccountName - the name of the automation account.
// jobScheduleID - the job schedule name.
func (client JobScheduleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (result JobSchedule, err error) { func (client JobScheduleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (result JobSchedule, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobScheduleClient", "Get", err.Error()) return result, validation.NewError("automation.JobScheduleClient", "Get", err.Error())
} }
@ -272,17 +281,21 @@ func (client JobScheduleClient) GetResponder(resp *http.Response) (result JobSch
} }
// ListByAutomationAccount retrieve a list of job schedules. // ListByAutomationAccount retrieve a list of job schedules.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
func (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result JobScheduleListResultPage, err error) { // automationAccountName - the name of the automation account.
// filter - the filter to apply on the operation.
func (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result JobScheduleListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobScheduleClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.JobScheduleClient", "ListByAutomationAccount", err.Error())
} }
result.fn = client.listByAutomationAccountNextResults result.fn = client.listByAutomationAccountNextResults
req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName) req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName, filter)
if err != nil { if err != nil {
err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "ListByAutomationAccount", nil, "Failure preparing request") err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "ListByAutomationAccount", nil, "Failure preparing request")
return return
@ -304,7 +317,7 @@ func (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, res
} }
// ListByAutomationAccountPreparer prepares the ListByAutomationAccount request. // ListByAutomationAccountPreparer prepares the ListByAutomationAccount request.
func (client JobScheduleClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string) (*http.Request, error) { func (client JobScheduleClient) ListByAutomationAccountPreparer(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (*http.Request, error) {
pathParameters := map[string]interface{}{ pathParameters := map[string]interface{}{
"automationAccountName": autorest.Encode("path", automationAccountName), "automationAccountName": autorest.Encode("path", automationAccountName),
"resourceGroupName": autorest.Encode("path", resourceGroupName), "resourceGroupName": autorest.Encode("path", resourceGroupName),
@ -315,6 +328,9 @@ func (client JobScheduleClient) ListByAutomationAccountPreparer(ctx context.Cont
queryParameters := map[string]interface{}{ queryParameters := map[string]interface{}{
"api-version": APIVersion, "api-version": APIVersion,
} }
if len(filter) > 0 {
queryParameters["$filter"] = autorest.Encode("query", filter)
}
preparer := autorest.CreatePreparer( preparer := autorest.CreatePreparer(
autorest.AsGet(), autorest.AsGet(),
@ -366,7 +382,7 @@ func (client JobScheduleClient) listByAutomationAccountNextResults(lastResults J
} }
// ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required. // ListByAutomationAccountComplete enumerates all values, automatically crossing page boundaries as required.
func (client JobScheduleClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string) (result JobScheduleListResultIterator, err error) { func (client JobScheduleClient) ListByAutomationAccountComplete(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result JobScheduleListResultIterator, err error) {
result.page, err = client.ListByAutomationAccount(ctx, resourceGroupName, automationAccountName) result.page, err = client.ListByAutomationAccount(ctx, resourceGroupName, automationAccountName, filter)
return return
} }

View file

@ -41,13 +41,17 @@ func NewJobStreamClientWithBaseURI(baseURI string, subscriptionID string) JobStr
} }
// Get retrieve the job stream identified by job stream id. // Get retrieve the job stream identified by job stream id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job id. jobStreamID is the job stream id. // automationAccountName - the name of the automation account.
// jobID - the job id.
// jobStreamID - the job stream id.
func (client JobStreamClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobID string, jobStreamID string) (result JobStream, err error) { func (client JobStreamClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, jobID string, jobStreamID string) (result JobStream, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobStreamClient", "Get", err.Error()) return result, validation.NewError("automation.JobStreamClient", "Get", err.Error())
} }
@ -116,13 +120,17 @@ func (client JobStreamClient) GetResponder(resp *http.Response) (result JobStrea
} }
// ListByJob retrieve a list of jobs streams identified by job id. // ListByJob retrieve a list of jobs streams identified by job id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the // resourceGroupName - name of an Azure Resource group.
// job Id. filter is the filter to apply on the operation. // automationAccountName - the name of the automation account.
// jobID - the job Id.
// filter - the filter to apply on the operation.
func (client JobStreamClient) ListByJob(ctx context.Context, resourceGroupName string, automationAccountName string, jobID string, filter string) (result JobStreamListResultPage, err error) { func (client JobStreamClient) ListByJob(ctx context.Context, resourceGroupName string, automationAccountName string, jobID string, filter string) (result JobStreamListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.JobStreamClient", "ListByJob", err.Error()) return result, validation.NewError("automation.JobStreamClient", "ListByJob", err.Error())
} }

View file

@ -41,12 +41,15 @@ func NewKeysClientWithBaseURI(baseURI string, subscriptionID string) KeysClient
} }
// ListByAutomationAccount retrieve the automation keys for an account. // ListByAutomationAccount retrieve the automation keys for an account.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client KeysClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result KeyListResult, err error) { func (client KeysClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result KeyListResult, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.KeysClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.KeysClient", "ListByAutomationAccount", err.Error())
} }

View file

@ -41,12 +41,15 @@ func NewLinkedWorkspaceClientWithBaseURI(baseURI string, subscriptionID string)
} }
// Get retrieve the linked workspace for the account id. // Get retrieve the linked workspace for the account id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client LinkedWorkspaceClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result LinkedWorkspace, err error) { func (client LinkedWorkspaceClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string) (result LinkedWorkspace, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.LinkedWorkspaceClient", "Get", err.Error()) return result, validation.NewError("automation.LinkedWorkspaceClient", "Get", err.Error())
} }

View file

@ -41,13 +41,17 @@ func NewModuleClientWithBaseURI(baseURI string, subscriptionID string) ModuleCli
} }
// CreateOrUpdate create or Update the module identified by module name. // CreateOrUpdate create or Update the module identified by module name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName // resourceGroupName - name of an Azure Resource group.
// is the name of module. parameters is the create or update parameters for module. // automationAccountName - the name of the automation account.
// moduleName - the name of module.
// parameters - the create or update parameters for module.
func (client ModuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters) (result Module, err error) { func (client ModuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters) (result Module, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.ModuleCreateOrUpdateProperties", Name: validation.Null, Rule: true, Constraints: []validation.Constraint{{Target: "parameters.ModuleCreateOrUpdateProperties", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.ModuleCreateOrUpdateProperties.ContentLink", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "parameters.ModuleCreateOrUpdateProperties.ContentLink", Name: validation.Null, Rule: true,
@ -126,13 +130,16 @@ func (client ModuleClient) CreateOrUpdateResponder(resp *http.Response) (result
} }
// Delete delete the module by name. // Delete delete the module by name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName // resourceGroupName - name of an Azure Resource group.
// is the module name. // automationAccountName - the name of the automation account.
// moduleName - the module name.
func (client ModuleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result autorest.Response, err error) { func (client ModuleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ModuleClient", "Delete", err.Error()) return result, validation.NewError("automation.ModuleClient", "Delete", err.Error())
} }
@ -199,13 +206,16 @@ func (client ModuleClient) DeleteResponder(resp *http.Response) (result autorest
} }
// Get retrieve the module identified by module name. // Get retrieve the module identified by module name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName // resourceGroupName - name of an Azure Resource group.
// is the module name. // automationAccountName - the name of the automation account.
// moduleName - the module name.
func (client ModuleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result Module, err error) { func (client ModuleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string) (result Module, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ModuleClient", "Get", err.Error()) return result, validation.NewError("automation.ModuleClient", "Get", err.Error())
} }
@ -273,12 +283,15 @@ func (client ModuleClient) GetResponder(resp *http.Response) (result Module, err
} }
// ListByAutomationAccount retrieve a list of modules. // ListByAutomationAccount retrieve a list of modules.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client ModuleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ModuleListResultPage, err error) { func (client ModuleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ModuleListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ModuleClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.ModuleClient", "ListByAutomationAccount", err.Error())
} }
@ -373,13 +386,17 @@ func (client ModuleClient) ListByAutomationAccountComplete(ctx context.Context,
} }
// Update update the module identified by module name. // Update update the module identified by module name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName // resourceGroupName - name of an Azure Resource group.
// is the name of module. parameters is the update parameters for module. // automationAccountName - the name of the automation account.
// moduleName - the name of module.
// parameters - the update parameters for module.
func (client ModuleClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleUpdateParameters) (result Module, err error) { func (client ModuleClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleUpdateParameters) (result Module, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ModuleClient", "Update", err.Error()) return result, validation.NewError("automation.ModuleClient", "Update", err.Error())
} }

View file

@ -41,13 +41,17 @@ func NewNodeReportsClientWithBaseURI(baseURI string, subscriptionID string) Node
} }
// Get retrieve the Dsc node report data by node id and report id. // Get retrieve the Dsc node report data by node id and report id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is // resourceGroupName - name of an Azure Resource group.
// the Dsc node id. reportID is the report id. // automationAccountName - the name of the automation account.
// nodeID - the Dsc node id.
// reportID - the report id.
func (client NodeReportsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string) (result DscNodeReport, err error) { func (client NodeReportsClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string) (result DscNodeReport, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.NodeReportsClient", "Get", err.Error()) return result, validation.NewError("automation.NodeReportsClient", "Get", err.Error())
} }
@ -116,13 +120,17 @@ func (client NodeReportsClient) GetResponder(resp *http.Response) (result DscNod
} }
// GetContent retrieve the Dsc node reports by node id and report id. // GetContent retrieve the Dsc node reports by node id and report id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is // resourceGroupName - name of an Azure Resource group.
// the Dsc node id. reportID is the report id. // automationAccountName - the name of the automation account.
// nodeID - the Dsc node id.
// reportID - the report id.
func (client NodeReportsClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string) (result SetObject, err error) { func (client NodeReportsClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, reportID string) (result SetObject, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.NodeReportsClient", "GetContent", err.Error()) return result, validation.NewError("automation.NodeReportsClient", "GetContent", err.Error())
} }
@ -191,13 +199,17 @@ func (client NodeReportsClient) GetContentResponder(resp *http.Response) (result
} }
// ListByNode retrieve the Dsc node report list by node id. // ListByNode retrieve the Dsc node report list by node id.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is // resourceGroupName - name of an Azure Resource group.
// the parameters supplied to the list operation. filter is the filter to apply on the operation. // automationAccountName - the name of the automation account.
// nodeID - the parameters supplied to the list operation.
// filter - the filter to apply on the operation.
func (client NodeReportsClient) ListByNode(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, filter string) (result DscNodeReportListResultPage, err error) { func (client NodeReportsClient) ListByNode(ctx context.Context, resourceGroupName string, automationAccountName string, nodeID string, filter string) (result DscNodeReportListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.NodeReportsClient", "ListByNode", err.Error()) return result, validation.NewError("automation.NodeReportsClient", "ListByNode", err.Error())
} }

View file

@ -41,13 +41,17 @@ func NewObjectDataTypesClientWithBaseURI(baseURI string, subscriptionID string)
} }
// ListFieldsByModuleAndType retrieve a list of fields of a given type identified by module name. // ListFieldsByModuleAndType retrieve a list of fields of a given type identified by module name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName // resourceGroupName - name of an Azure Resource group.
// is the name of module. typeName is the name of type. // automationAccountName - the name of the automation account.
// moduleName - the name of module.
// typeName - the name of type.
func (client ObjectDataTypesClient) ListFieldsByModuleAndType(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, typeName string) (result TypeFieldListResult, err error) { func (client ObjectDataTypesClient) ListFieldsByModuleAndType(ctx context.Context, resourceGroupName string, automationAccountName string, moduleName string, typeName string) (result TypeFieldListResult, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ObjectDataTypesClient", "ListFieldsByModuleAndType", err.Error()) return result, validation.NewError("automation.ObjectDataTypesClient", "ListFieldsByModuleAndType", err.Error())
} }
@ -116,13 +120,16 @@ func (client ObjectDataTypesClient) ListFieldsByModuleAndTypeResponder(resp *htt
} }
// ListFieldsByType retrieve a list of fields of a given type across all accessible modules. // ListFieldsByType retrieve a list of fields of a given type across all accessible modules.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. typeName is // resourceGroupName - name of an Azure Resource group.
// the name of type. // automationAccountName - the name of the automation account.
// typeName - the name of type.
func (client ObjectDataTypesClient) ListFieldsByType(ctx context.Context, resourceGroupName string, automationAccountName string, typeName string) (result TypeFieldListResult, err error) { func (client ObjectDataTypesClient) ListFieldsByType(ctx context.Context, resourceGroupName string, automationAccountName string, typeName string) (result TypeFieldListResult, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ObjectDataTypesClient", "ListFieldsByType", err.Error()) return result, validation.NewError("automation.ObjectDataTypesClient", "ListFieldsByType", err.Error())
} }

View file

@ -41,14 +41,18 @@ func NewRunbookClientWithBaseURI(baseURI string, subscriptionID string) RunbookC
} }
// CreateOrUpdate create the runbook identified by runbook name. // CreateOrUpdate create the runbook identified by runbook name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the runbook name. parameters is the create or update parameters for runbook. Provide either content link for // automationAccountName - the name of the automation account.
// a published runbook or draft, not both. // runbookName - the runbook name.
// parameters - the create or update parameters for runbook. Provide either content link for a published
// runbook or draft, not both.
func (client RunbookClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookCreateOrUpdateParameters) (result Runbook, err error) { func (client RunbookClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookCreateOrUpdateParameters) (result Runbook, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.RunbookCreateOrUpdateProperties", Name: validation.Null, Rule: true, Constraints: []validation.Constraint{{Target: "parameters.RunbookCreateOrUpdateProperties", Name: validation.Null, Rule: true,
Chain: []validation.Constraint{{Target: "parameters.RunbookCreateOrUpdateProperties.Draft", Name: validation.Null, Rule: false, Chain: []validation.Constraint{{Target: "parameters.RunbookCreateOrUpdateProperties.Draft", Name: validation.Null, Rule: false,
@ -135,13 +139,16 @@ func (client RunbookClient) CreateOrUpdateResponder(resp *http.Response) (result
} }
// Delete delete the runbook by name. // Delete delete the runbook by name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the runbook name. // automationAccountName - the name of the automation account.
// runbookName - the runbook name.
func (client RunbookClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result autorest.Response, err error) { func (client RunbookClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookClient", "Delete", err.Error()) return result, validation.NewError("automation.RunbookClient", "Delete", err.Error())
} }
@ -208,13 +215,16 @@ func (client RunbookClient) DeleteResponder(resp *http.Response) (result autores
} }
// Get retrieve the runbook identified by runbook name. // Get retrieve the runbook identified by runbook name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the runbook name. // automationAccountName - the name of the automation account.
// runbookName - the runbook name.
func (client RunbookClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result Runbook, err error) { func (client RunbookClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result Runbook, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookClient", "Get", err.Error()) return result, validation.NewError("automation.RunbookClient", "Get", err.Error())
} }
@ -282,13 +292,16 @@ func (client RunbookClient) GetResponder(resp *http.Response) (result Runbook, e
} }
// GetContent retrieve the content of runbook identified by runbook name. // GetContent retrieve the content of runbook identified by runbook name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the runbook name. // automationAccountName - the name of the automation account.
// runbookName - the runbook name.
func (client RunbookClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result String, err error) { func (client RunbookClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result String, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookClient", "GetContent", err.Error()) return result, validation.NewError("automation.RunbookClient", "GetContent", err.Error())
} }
@ -356,12 +369,15 @@ func (client RunbookClient) GetContentResponder(resp *http.Response) (result Str
} }
// ListByAutomationAccount retrieve a list of runbooks. // ListByAutomationAccount retrieve a list of runbooks.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client RunbookClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result RunbookListResultPage, err error) { func (client RunbookClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result RunbookListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.RunbookClient", "ListByAutomationAccount", err.Error())
} }
@ -456,13 +472,17 @@ func (client RunbookClient) ListByAutomationAccountComplete(ctx context.Context,
} }
// Update update the runbook identified by runbook name. // Update update the runbook identified by runbook name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the runbook name. parameters is the update parameters for runbook. // automationAccountName - the name of the automation account.
// runbookName - the runbook name.
// parameters - the update parameters for runbook.
func (client RunbookClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookUpdateParameters) (result Runbook, err error) { func (client RunbookClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookUpdateParameters) (result Runbook, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookClient", "Update", err.Error()) return result, validation.NewError("automation.RunbookClient", "Update", err.Error())
} }

View file

@ -41,13 +41,16 @@ func NewRunbookDraftClientWithBaseURI(baseURI string, subscriptionID string) Run
} }
// Get retrieve the runbook draft identified by runbook name. // Get retrieve the runbook draft identified by runbook name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the runbook name. // automationAccountName - the name of the automation account.
// runbookName - the runbook name.
func (client RunbookDraftClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result RunbookDraft, err error) { func (client RunbookDraftClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result RunbookDraft, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookDraftClient", "Get", err.Error()) return result, validation.NewError("automation.RunbookDraftClient", "Get", err.Error())
} }
@ -115,13 +118,16 @@ func (client RunbookDraftClient) GetResponder(resp *http.Response) (result Runbo
} }
// GetContent retrieve the content of runbook draft identified by runbook name. // GetContent retrieve the content of runbook draft identified by runbook name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the runbook name. // automationAccountName - the name of the automation account.
// runbookName - the runbook name.
func (client RunbookDraftClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result String, err error) { func (client RunbookDraftClient) GetContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result String, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookDraftClient", "GetContent", err.Error()) return result, validation.NewError("automation.RunbookDraftClient", "GetContent", err.Error())
} }
@ -189,13 +195,16 @@ func (client RunbookDraftClient) GetContentResponder(resp *http.Response) (resul
} }
// Publish publish runbook draft. // Publish publish runbook draft.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the parameters supplied to the publish runbook operation. // automationAccountName - the name of the automation account.
// runbookName - the parameters supplied to the publish runbook operation.
func (client RunbookDraftClient) Publish(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result RunbookDraftPublishFuture, err error) { func (client RunbookDraftClient) Publish(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result RunbookDraftPublishFuture, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookDraftClient", "Publish", err.Error()) return result, validation.NewError("automation.RunbookDraftClient", "Publish", err.Error())
} }
@ -239,39 +248,44 @@ func (client RunbookDraftClient) PublishPreparer(ctx context.Context, resourceGr
// PublishSender sends the Publish request. The method will close the // PublishSender sends the Publish request. The method will close the
// http.Response Body if it receives an error. // http.Response Body if it receives an error.
func (client RunbookDraftClient) PublishSender(req *http.Request) (future RunbookDraftPublishFuture, err error) { func (client RunbookDraftClient) PublishSender(req *http.Request) (future RunbookDraftPublishFuture, err error) {
sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) var resp *http.Response
future.Future = azure.NewFuture(req) resp, err = autorest.SendWithSender(client, req,
future.req = req azure.DoRetryWithRegistration(client.Client))
_, err = future.Done(sender)
if err != nil { if err != nil {
return return
} }
err = autorest.Respond(future.Response(), err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted))
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) if err != nil {
return
}
future.Future, err = azure.NewFutureFromResponse(resp)
return return
} }
// PublishResponder handles the response to the Publish request. The method always // PublishResponder handles the response to the Publish request. The method always
// closes the http.Response Body. // closes the http.Response Body.
func (client RunbookDraftClient) PublishResponder(resp *http.Response) (result String, err error) { func (client RunbookDraftClient) PublishResponder(resp *http.Response) (result autorest.Response, err error) {
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing()) autorest.ByClosing())
result.Response = autorest.Response{Response: resp} result.Response = resp
return return
} }
// ReplaceContent replaces the runbook draft content. // ReplaceContent replaces the runbook draft content.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the runbook name. runbookContent is the runbook draft content. // automationAccountName - the name of the automation account.
// runbookName - the runbook name.
// runbookContent - the runbook draft content.
func (client RunbookDraftClient) ReplaceContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, runbookContent string) (result RunbookDraftReplaceContentFuture, err error) { func (client RunbookDraftClient) ReplaceContent(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string, runbookContent string) (result RunbookDraftReplaceContentFuture, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookDraftClient", "ReplaceContent", err.Error()) return result, validation.NewError("automation.RunbookDraftClient", "ReplaceContent", err.Error())
} }
@ -317,15 +331,17 @@ func (client RunbookDraftClient) ReplaceContentPreparer(ctx context.Context, res
// ReplaceContentSender sends the ReplaceContent request. The method will close the // ReplaceContentSender sends the ReplaceContent request. The method will close the
// http.Response Body if it receives an error. // http.Response Body if it receives an error.
func (client RunbookDraftClient) ReplaceContentSender(req *http.Request) (future RunbookDraftReplaceContentFuture, err error) { func (client RunbookDraftClient) ReplaceContentSender(req *http.Request) (future RunbookDraftReplaceContentFuture, err error) {
sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client)) var resp *http.Response
future.Future = azure.NewFuture(req) resp, err = autorest.SendWithSender(client, req,
future.req = req azure.DoRetryWithRegistration(client.Client))
_, err = future.Done(sender)
if err != nil { if err != nil {
return return
} }
err = autorest.Respond(future.Response(), err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted))
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted)) if err != nil {
return
}
future.Future, err = azure.NewFutureFromResponse(resp)
return return
} }
@ -343,13 +359,16 @@ func (client RunbookDraftClient) ReplaceContentResponder(resp *http.Response) (r
} }
// UndoEdit undo draft edit to last known published state identified by runbook name. // UndoEdit undo draft edit to last known published state identified by runbook name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName // resourceGroupName - name of an Azure Resource group.
// is the runbook name. // automationAccountName - the name of the automation account.
// runbookName - the runbook name.
func (client RunbookDraftClient) UndoEdit(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result RunbookDraftUndoEditResult, err error) { func (client RunbookDraftClient) UndoEdit(ctx context.Context, resourceGroupName string, automationAccountName string, runbookName string) (result RunbookDraftUndoEditResult, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.RunbookDraftClient", "UndoEdit", err.Error()) return result, validation.NewError("automation.RunbookDraftClient", "UndoEdit", err.Error())
} }

View file

@ -41,13 +41,17 @@ func NewScheduleClientWithBaseURI(baseURI string, subscriptionID string) Schedul
} }
// CreateOrUpdate create a schedule. // CreateOrUpdate create a schedule.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. scheduleName // resourceGroupName - name of an Azure Resource group.
// is the schedule name. parameters is the parameters supplied to the create or update schedule operation. // automationAccountName - the name of the automation account.
// scheduleName - the schedule name.
// parameters - the parameters supplied to the create or update schedule operation.
func (client ScheduleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleCreateOrUpdateParameters) (result Schedule, err error) { func (client ScheduleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleCreateOrUpdateParameters) (result Schedule, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
{TargetValue: parameters, {TargetValue: parameters,
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil}, Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
{Target: "parameters.ScheduleCreateOrUpdateProperties", Name: validation.Null, Rule: true, {Target: "parameters.ScheduleCreateOrUpdateProperties", Name: validation.Null, Rule: true,
@ -121,13 +125,16 @@ func (client ScheduleClient) CreateOrUpdateResponder(resp *http.Response) (resul
} }
// Delete delete the schedule identified by schedule name. // Delete delete the schedule identified by schedule name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. scheduleName // resourceGroupName - name of an Azure Resource group.
// is the schedule name. // automationAccountName - the name of the automation account.
// scheduleName - the schedule name.
func (client ScheduleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string) (result autorest.Response, err error) { func (client ScheduleClient) Delete(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ScheduleClient", "Delete", err.Error()) return result, validation.NewError("automation.ScheduleClient", "Delete", err.Error())
} }
@ -187,20 +194,23 @@ func (client ScheduleClient) DeleteResponder(resp *http.Response) (result autore
err = autorest.Respond( err = autorest.Respond(
resp, resp,
client.ByInspecting(), client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound), azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByClosing()) autorest.ByClosing())
result.Response = resp result.Response = resp
return return
} }
// Get retrieve the schedule identified by schedule name. // Get retrieve the schedule identified by schedule name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. scheduleName // resourceGroupName - name of an Azure Resource group.
// is the schedule name. // automationAccountName - the name of the automation account.
// scheduleName - the schedule name.
func (client ScheduleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string) (result Schedule, err error) { func (client ScheduleClient) Get(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string) (result Schedule, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ScheduleClient", "Get", err.Error()) return result, validation.NewError("automation.ScheduleClient", "Get", err.Error())
} }
@ -268,12 +278,15 @@ func (client ScheduleClient) GetResponder(resp *http.Response) (result Schedule,
} }
// ListByAutomationAccount retrieve a list of schedules. // ListByAutomationAccount retrieve a list of schedules.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. // resourceGroupName - name of an Azure Resource group.
// automationAccountName - the name of the automation account.
func (client ScheduleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ScheduleListResultPage, err error) { func (client ScheduleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result ScheduleListResultPage, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ScheduleClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.ScheduleClient", "ListByAutomationAccount", err.Error())
} }
@ -368,13 +381,17 @@ func (client ScheduleClient) ListByAutomationAccountComplete(ctx context.Context
} }
// Update update the schedule identified by schedule name. // Update update the schedule identified by schedule name.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. scheduleName // resourceGroupName - name of an Azure Resource group.
// is the schedule name. parameters is the parameters supplied to the update schedule operation. // automationAccountName - the name of the automation account.
// scheduleName - the schedule name.
// parameters - the parameters supplied to the update schedule operation.
func (client ScheduleClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleUpdateParameters) (result Schedule, err error) { func (client ScheduleClient) Update(ctx context.Context, resourceGroupName string, automationAccountName string, scheduleName string, parameters ScheduleUpdateParameters) (result Schedule, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.ScheduleClient", "Update", err.Error()) return result, validation.NewError("automation.ScheduleClient", "Update", err.Error())
} }

View file

@ -41,13 +41,16 @@ func NewStatisticsClientWithBaseURI(baseURI string, subscriptionID string) Stati
} }
// ListByAutomationAccount retrieve the statistics for the account. // ListByAutomationAccount retrieve the statistics for the account.
// // Parameters:
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is // resourceGroupName - name of an Azure Resource group.
// the filter to apply on the operation. // automationAccountName - the name of the automation account.
// filter - the filter to apply on the operation.
func (client StatisticsClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result StatisticsListResult, err error) { func (client StatisticsClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string, filter string) (result StatisticsListResult, err error) {
if err := validation.Validate([]validation.Validation{ if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName, {TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil { Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}}}); err != nil {
return result, validation.NewError("automation.StatisticsClient", "ListByAutomationAccount", err.Error()) return result, validation.NewError("automation.StatisticsClient", "ListByAutomationAccount", err.Error())
} }

Some files were not shown because too many files have changed in this diff Show more