mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 23:49:15 +01:00
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:
parent
72392a2d72
commit
03c5b8232e
8
Gopkg.lock
generated
8
Gopkg.lock
generated
@ -23,8 +23,8 @@
|
||||
"storage",
|
||||
"version"
|
||||
]
|
||||
revision = "cd93ccfe0395e70031704ca68f14606588eec120"
|
||||
version = "v17.3.0"
|
||||
revision = "fbe7db0e3f9793ba3e5704efbab84f51436c136e"
|
||||
version = "v18.0.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/Azure/go-autorest"
|
||||
@ -34,8 +34,8 @@
|
||||
"autorest/azure",
|
||||
"autorest/date"
|
||||
]
|
||||
revision = "f04d503958a4fe854c1b41667c73f8813c9dd9c3"
|
||||
version = "v10.11.2"
|
||||
revision = "1f7cd6cfe0adea687ad44a512dfe76140f804318"
|
||||
version = "v10.12.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
3
vendor/github.com/Azure/azure-sdk-for-go/.travis.yml
generated
vendored
3
vendor/github.com/Azure/azure-sdk-for-go/.travis.yml
generated
vendored
@ -12,6 +12,9 @@ env:
|
||||
- DEP_VERSION="0.4.1"
|
||||
- DEP_SHA=31144e465e52ffbc0035248a10ddea61a09bf28b00784fd3fdd9882c8cbb2315
|
||||
- IGNORE_BREAKING_CHANGES=true
|
||||
matrix:
|
||||
- GOARCH="amd64"
|
||||
- GOARCH="386"
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
|
191
vendor/github.com/Azure/azure-sdk-for-go/CHANGELOG.md
generated
vendored
191
vendor/github.com/Azure/azure-sdk-for-go/CHANGELOG.md
generated
vendored
@ -1,43 +1,120 @@
|
||||
# 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`
|
||||
|
||||
### New Services
|
||||
|
||||
| Package Name | API Version |
|
||||
| --------------------: | :-----------------: |
|
||||
| containerinstance | 2018-06-01 |
|
||||
| reservations | 2018-06-01 |
|
||||
| Package Name | API Version |
|
||||
| ----------------: | :---------: |
|
||||
| containerinstance | 2018-06-01 |
|
||||
| reservations | 2018-06-01 |
|
||||
|
||||
### Updated Services
|
||||
|
||||
| Package Name | API Version |
|
||||
| --------------------: | :-----------------: |
|
||||
| datafactory | 2017-09-01 |
|
||||
| network | 2015-06-15 |
|
||||
| Package Name | API Version |
|
||||
| -----------: | :---------: |
|
||||
| datafactory | 2017-09-01 |
|
||||
| network | 2015-06-15 |
|
||||
|
||||
## `v17.2.0`
|
||||
|
||||
### New Services
|
||||
|
||||
| Package Name | API Version |
|
||||
| --------------------: | :-----------------: |
|
||||
| managedapplications | 2018-06-01 |
|
||||
| resources | 2018-05-01 |
|
||||
| Package Name | API Version |
|
||||
| ------------------: | :---------: |
|
||||
| managedapplications | 2018-06-01 |
|
||||
| resources | 2018-05-01 |
|
||||
|
||||
### Updated Services
|
||||
|
||||
| Package Name | API Version |
|
||||
| --------------------: | :-----------------: |
|
||||
| networksecuritygroup | classic |
|
||||
| Package Name | API Version |
|
||||
| -------------------: | :---------: |
|
||||
| networksecuritygroup | classic |
|
||||
|
||||
## `v17.1.0`
|
||||
|
||||
### New Services
|
||||
|
||||
| Package Name | API Version |
|
||||
| --------------------: | :-----------------: |
|
||||
| iotcentral | 2017-07-01-privatepreview |
|
||||
| Package Name | API Version |
|
||||
| -----------: | :-----------------------: |
|
||||
| iotcentral | 2017-07-01-privatepreview |
|
||||
|
||||
## `v17.0.0`
|
||||
|
||||
@ -248,7 +325,7 @@
|
||||
|
||||
## `v16.1.0`
|
||||
|
||||
* Added a `NewAuthorizerFromEnvironment()` function for the keyvault service.
|
||||
- Added a `NewAuthorizerFromEnvironment()` function for the keyvault service.
|
||||
|
||||
## `v16.0.0`
|
||||
|
||||
@ -339,8 +416,8 @@
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Drain the response body when retrying a request.
|
||||
* Avoid allocating when draining a response body.
|
||||
- Drain the response body when retrying a request.
|
||||
- Avoid allocating when draining a response body.
|
||||
|
||||
## `v15.1.0`
|
||||
|
||||
@ -374,14 +451,14 @@ NOTE: There is a new subdirectory, ./services/preview, which going forward will
|
||||
|
||||
### 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
|
||||
|
||||
* Removed the "arm-" prefix from user-agent strings as not all services are for ARM.
|
||||
* Fixed missing marshaller for structs with flattened fields.
|
||||
* Fixed an issue where the incorrect content MIME type was being specified.
|
||||
* Marshalling of empty values for enum types now works as expected.
|
||||
- Removed the "arm-" prefix from user-agent strings as not all services are for ARM.
|
||||
- Fixed missing marshaller for structs with flattened fields.
|
||||
- Fixed an issue where the incorrect content MIME type was being specified.
|
||||
- Marshalling of empty values for enum types now works as expected.
|
||||
|
||||
### New Services
|
||||
|
||||
@ -441,80 +518,80 @@ NOTE: There is a new subdirectory, ./services/preview, which going forward will
|
||||
|
||||
### New Services
|
||||
|
||||
* Batch 2018-03-01.6.1
|
||||
* BatchAI 2018-03-01
|
||||
* Cognitive services custom vision prediction v1.1
|
||||
* Eventhub 2018-01-01-preview
|
||||
* MySQL 2017-12-01
|
||||
* PostgreSQL 2017-12-01
|
||||
* Redis 2018-03-01
|
||||
* Subscription 2018-03-01-preview
|
||||
- Batch 2018-03-01.6.1
|
||||
- BatchAI 2018-03-01
|
||||
- Cognitive services custom vision prediction v1.1
|
||||
- Eventhub 2018-01-01-preview
|
||||
- MySQL 2017-12-01
|
||||
- PostgreSQL 2017-12-01
|
||||
- Redis 2018-03-01
|
||||
- Subscription 2018-03-01-preview
|
||||
|
||||
## `v14.5.0`
|
||||
|
||||
### Changes
|
||||
|
||||
* Added new preview packages for apimanagement and dns.
|
||||
- Added new preview packages for apimanagement and dns.
|
||||
|
||||
## `v14.4.0`
|
||||
|
||||
### Changes
|
||||
|
||||
* Added new preview API versions for mysql and postgresql.
|
||||
- Added new preview API versions for mysql and postgresql.
|
||||
|
||||
## `v14.3.0`
|
||||
|
||||
### Changes
|
||||
|
||||
* Add exports for max file range and sizes for files in storage.
|
||||
* Updated README regarding blob storage support.
|
||||
* Add godoc indexer tool.
|
||||
* Add apidiff tool.
|
||||
- Add exports for max file range and sizes for files in storage.
|
||||
- Updated README regarding blob storage support.
|
||||
- Add godoc indexer tool.
|
||||
- Add apidiff tool.
|
||||
|
||||
## `v14.2.0`
|
||||
|
||||
### Changes
|
||||
|
||||
* For blob storage, added GetProperties() method to Container.
|
||||
* Added PublicAccess field to ContainerProperties struct.
|
||||
- For blob storage, added GetProperties() method to Container.
|
||||
- Added PublicAccess field to ContainerProperties struct.
|
||||
|
||||
## `v14.1.1`
|
||||
|
||||
* Fixing timestamp marshalling bug in the `storage` package.
|
||||
* 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.
|
||||
- Fixing timestamp marshalling bug in the `storage` package.
|
||||
- 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.
|
||||
|
||||
## `v14.1.0`
|
||||
|
||||
### Changes
|
||||
|
||||
* Update README with details on new authentication helpers.
|
||||
* Update `latest` profile to point to latest stable API versions.
|
||||
* Add new API version for Azure Monitoring service and for Batch Data plane service.
|
||||
- Update README with details on new authentication helpers.
|
||||
- Update `latest` profile to point to latest stable API versions.
|
||||
- Add new API version for Azure Monitoring service and for Batch Data plane service.
|
||||
|
||||
## `v14.0.2`
|
||||
|
||||
### Changes
|
||||
|
||||
* 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.
|
||||
- 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.
|
||||
|
||||
## `v14.0.1`
|
||||
|
||||
### 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`
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
* 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
|
||||
* Renamed package ./services/redis/mgmt/2017-10-01/cache to ./services/redis/mgmt/2017-10-01/redis
|
||||
- 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
|
||||
- Renamed package ./services/redis/mgmt/2017-10-01/cache to ./services/redis/mgmt/2017-10-01/redis
|
||||
|
||||
### Changes
|
||||
|
||||
* Removed the "-beta" suffix.
|
||||
* Added various new services.
|
||||
* Added ./version package for centralized SDK versioning.
|
||||
- Removed the "-beta" suffix.
|
||||
- Added various new services.
|
||||
- Added ./version package for centralized SDK versioning.
|
||||
|
40
vendor/github.com/Azure/azure-sdk-for-go/Gopkg.lock
generated
vendored
40
vendor/github.com/Azure/azure-sdk-for-go/Gopkg.lock
generated
vendored
@ -12,8 +12,8 @@
|
||||
"autorest/to",
|
||||
"autorest/validation"
|
||||
]
|
||||
revision = "4de44cd533576f3c7b44dcb08dc03754d217144d"
|
||||
version = "v10.9.2"
|
||||
revision = "1f7cd6cfe0adea687ad44a512dfe76140f804318"
|
||||
version = "v10.12.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/dgrijalva/jwt-go"
|
||||
@ -34,7 +34,7 @@
|
||||
"cassette",
|
||||
"recorder"
|
||||
]
|
||||
revision = "f8a7e8b9c630b486df74145bb887793a1b85459b"
|
||||
revision = "8b144be0744f013a1b44386058f1fcb3ba98177d"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/fsnotify/fsnotify"
|
||||
@ -52,7 +52,7 @@
|
||||
"internal/sasl",
|
||||
"internal/scram"
|
||||
]
|
||||
revision = "efe0945164a7e582241f37ae8983c075f8f2e870"
|
||||
revision = "113d3961e7311526535a1ef7042196563d442761"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
@ -77,6 +77,18 @@
|
||||
revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
|
||||
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]]
|
||||
name = "github.com/magiconair/properties"
|
||||
packages = ["."]
|
||||
@ -105,7 +117,7 @@
|
||||
branch = "master"
|
||||
name = "github.com/marstr/randname"
|
||||
packages = ["."]
|
||||
revision = "3ef1f47af99e66171417047e6f6fa334345e95e7"
|
||||
revision = "48a63b6052f1f9373db9388a658da30c6ab53db1"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
@ -122,8 +134,8 @@
|
||||
[[projects]]
|
||||
name = "github.com/pelletier/go-toml"
|
||||
packages = ["."]
|
||||
revision = "acdc4509485b587f5e675510c4f2c63e90ff68a8"
|
||||
version = "v1.1.0"
|
||||
revision = "c01d1270ff3e442a8a57cddc1c92dc1138598194"
|
||||
version = "v1.2.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/satori/go.uuid"
|
||||
@ -143,8 +155,8 @@
|
||||
".",
|
||||
"mem"
|
||||
]
|
||||
revision = "63644898a8da0bc22138abf860edaf5277b6102e"
|
||||
version = "v1.1.0"
|
||||
revision = "787d034dfe70e44075ccc060d346146ef53270ad"
|
||||
version = "v1.1.1"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/spf13/cast"
|
||||
@ -183,13 +195,13 @@
|
||||
"pkcs12",
|
||||
"pkcs12/internal/rc2"
|
||||
]
|
||||
revision = "5ba7f63082460102a45837dbd1827e10f9479ac0"
|
||||
revision = "a49355c7e3f8fe157a85be2f77e6e269a0f89602"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "golang.org/x/sys"
|
||||
packages = ["unix"]
|
||||
revision = "c11f84a56e43e20a78cee75a7c034031ecf57d1f"
|
||||
revision = "7138fd3d9dc8335c567ca206f4333fb75eb05d56"
|
||||
|
||||
[[projects]]
|
||||
name = "golang.org/x/text"
|
||||
@ -212,13 +224,13 @@
|
||||
"imports",
|
||||
"internal/fastwalk"
|
||||
]
|
||||
revision = "a5b4c53f6e8bdcafa95a94671bf2d1203365858b"
|
||||
revision = "ffe88906718454e356e61776b54256e873fc133b"
|
||||
|
||||
[[projects]]
|
||||
branch = "v1"
|
||||
name = "gopkg.in/check.v1"
|
||||
packages = ["."]
|
||||
revision = "20d25e2804050c1cd24a7eea1e7a6447dd0e74ec"
|
||||
revision = "788fd78401277ebd861206a03c884797c6ec5541"
|
||||
|
||||
[[projects]]
|
||||
name = "gopkg.in/yaml.v2"
|
||||
@ -229,6 +241,6 @@
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
analyzer-version = 1
|
||||
inputs-digest = "3ba7e7e6599059a0ac88f854eca95495c02501ebe2e0be13b38e4f2b823d5c53"
|
||||
inputs-digest = "f4bfed9d1dcc4af2e0ff5811bb14dfebe84f87e7aed10199b8ff8d867d947612"
|
||||
solver-name = "gps-cdcl"
|
||||
solver-version = 1
|
||||
|
2
vendor/github.com/Azure/azure-sdk-for-go/Gopkg.toml
generated
vendored
2
vendor/github.com/Azure/azure-sdk-for-go/Gopkg.toml
generated
vendored
@ -22,7 +22,7 @@
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/Azure/go-autorest"
|
||||
version = "10.9.2"
|
||||
version = "10.12.0"
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
|
225
vendor/github.com/Azure/azure-sdk-for-go/README.md
generated
vendored
225
vendor/github.com/Azure/azure-sdk-for-go/README.md
generated
vendored
@ -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)
|
||||
[![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
|
||||
tested with Go 1.8, 1.9 and 1.10.
|
||||
azure-sdk-for-go provides Go packages for managing and using Azure services.
|
||||
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
|
||||
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].
|
||||
|
||||
### Build Details
|
||||
## Package Updates
|
||||
|
||||
Most packages in the SDK are generated from [Azure API specs][azure_rest_specs]
|
||||
using [Azure/autorest.go][] and [Azure/autorest][]. These generated packages
|
||||
depend on the HTTP client implemented at [Azure/go-autorest][].
|
||||
|
||||
[azure_rest_specs]: https://github.com/Azure/azure-rest-api-specs
|
||||
[Azure/autorest]: https://github.com/Azure/autorest
|
||||
[Azure/autorest.go]: https://github.com/Azure/autorest.go
|
||||
[Azure/go-autorest]: https://github.com/Azure/go-autorest
|
||||
[azure/autorest]: https://github.com/Azure/autorest
|
||||
[azure/autorest.go]: https://github.com/Azure/autorest.go
|
||||
[azure/go-autorest]: https://github.com/Azure/go-autorest
|
||||
|
||||
The SDK codebase adheres to [semantic versioning](https://semver.org) and thus
|
||||
avoids breaking changes other than at major (x.0.0) releases. However,
|
||||
occasionally Azure API fixes require breaking updates within an individual
|
||||
package; these exceptions are noted in release changelogs.
|
||||
avoids breaking changes other than at major (x.0.0) releases. Because Azure's
|
||||
APIs are updated frequently, we release a **new major version at the end of
|
||||
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
|
||||
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
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ 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/).
|
||||
|
||||
### 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.
|
||||
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. `c.CreateOrUpdate(...)`.
|
||||
4. Handle responses.
|
||||
Apply the following general steps to use packages in this repo. For more on
|
||||
authentication and the `Authorizer` interface see [the next
|
||||
section](#authentication).
|
||||
|
||||
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
|
||||
|
||||
For example, to create a new virtual network (substitute your own values for
|
||||
strings in angle brackets):
|
||||
|
||||
Note: For more on authentication and the `Authorizer` interface see [the next
|
||||
section](#authentication).
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"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/to"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// create a VirtualNetworks client
|
||||
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 {
|
||||
vnetClient.Authorizer = authorizer
|
||||
}
|
||||
|
||||
// call the VirtualNetworks CreateOrUpdate API
|
||||
vnetClient.CreateOrUpdate(context.Background(),
|
||||
"<resourceGroupName>",
|
||||
"<vnetName>",
|
||||
@ -112,52 +134,111 @@ func main() {
|
||||
}
|
||||
```
|
||||
|
||||
### Authentication
|
||||
## Authentication
|
||||
|
||||
Most SDK operations require an OAuth token for authentication and authorization. These are
|
||||
made available in the Go SDK For Azure through types implementing the `Authorizer` interface.
|
||||
You can get one from Azure Active Directory using the SDK's
|
||||
[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).
|
||||
Typical SDK operations must be authenticated and authorized. The _Authorizer_
|
||||
interface allows use of any auth style in requests, such as inserting an OAuth2
|
||||
Authorization header and bearer token received from Azure AD.
|
||||
|
||||
You can get an authorizer in the following ways:
|
||||
1. From the **Environment**:
|
||||
- Use `auth.auth.NewAuthorizerFromEnvironment()`. This call will try to get an authorizer based on the environment
|
||||
variables with different types of credentials in the following order:
|
||||
1. **Client Credentials**: Uses the AAD App Secret for auth.
|
||||
- `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).
|
||||
The SDK itself provides a simple way to get an authorizer which first checks
|
||||
for OAuth client credentials in environment variables and then falls back to
|
||||
Azure's [Managed Service Identity]() when available, e.g. when on an Azure
|
||||
VM. The following snippet from [the previous section](#use) demonstrates
|
||||
this helper.
|
||||
|
||||
- Optionally, the following environment variables can be defined:
|
||||
- `AZURE_ENVIRONMENT`: Specifies the Azure Environment to use. If not set, it defaults to `AzurePublicCloud`. (Not applicable to MSI based 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.
|
||||
```go
|
||||
import github.com/Azure/go-autorest/autorest/azure/auth
|
||||
|
||||
2. From an **Auth File**:
|
||||
- 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).
|
||||
- Set environment variable `AZURE_AUTH_LOCATION` for finding the file.
|
||||
- Use `auth.NewAuthorizerFromFile()` for getting the `Authorizer` based on the auth file.
|
||||
// create a VirtualNetworks client
|
||||
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
|
||||
|
||||
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
|
||||
`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.
|
||||
// call the VirtualNetworks CreateOrUpdate API
|
||||
vnetClient.CreateOrUpdate(context.Background(),
|
||||
// ...
|
||||
```
|
||||
|
||||
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
|
||||
|
||||
@ -186,17 +267,16 @@ Occasionally service-side changes require major changes to existing versions.
|
||||
These cases are noted in the changelog.
|
||||
|
||||
All avilable services and versions are listed under the `services/` path in
|
||||
this repo and in [GoDoc][services_godoc]. Run `find ./services -type d
|
||||
-mindepth 3` to list all available service packages.
|
||||
this repo and in [GoDoc][services_godoc]. Run `find ./services -type d -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
|
||||
|
||||
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
|
||||
* **compatibility** for your application with Azure Stack and regional Azure datacenters.
|
||||
- **stability** for your application by locking to specific API versions; and/or
|
||||
- **compatibility** for your application with Azure Stack and regional Azure datacenters.
|
||||
|
||||
In the Go SDK, profiles are available under the `profiles/` path and their
|
||||
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.
|
||||
|
||||
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
|
||||
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
|
||||
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.
|
||||
|
||||
```go
|
||||
|
||||
vnetClient := network.NewVirtualNetworksClient("<subscriptionID>")
|
||||
vnetClient.RequestInspector = LogRequest()
|
||||
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/).
|
||||
- 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
|
||||
|
||||
Apache 2.0, see [LICENSE](./LICENSE).
|
||||
@ -297,5 +371,4 @@ Apache 2.0, see [LICENSE](./LICENSE).
|
||||
|
||||
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
|
||||
|
@ -64,7 +64,6 @@ type OperationEntityListResult = original.OperationEntityListResult
|
||||
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
|
||||
type OperationEntityListResultPage = original.OperationEntityListResultPage
|
||||
type RecommendationProperties = original.RecommendationProperties
|
||||
type RecommendationsGetGenerateStatusFuture = original.RecommendationsGetGenerateStatusFuture
|
||||
type Resource = original.Resource
|
||||
type ResourceRecommendationBase = original.ResourceRecommendationBase
|
||||
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult
|
||||
|
@ -21,7 +21,7 @@ package 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 APIKeysClient = original.APIKeysClient
|
||||
|
||||
@ -36,7 +36,6 @@ type ComponentFeatureCapabilitiesClient = original.ComponentFeatureCapabilitiesC
|
||||
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
|
||||
type ComponentsClient = original.ComponentsClient
|
||||
type ExportConfigurationsClient = original.ExportConfigurationsClient
|
||||
type FavoriteClient = original.FavoriteClient
|
||||
type FavoritesClient = original.FavoritesClient
|
||||
type ApplicationType = original.ApplicationType
|
||||
|
||||
@ -142,6 +141,7 @@ const (
|
||||
|
||||
type Annotation = original.Annotation
|
||||
type AnnotationError = original.AnnotationError
|
||||
type AnnotationsListResult = original.AnnotationsListResult
|
||||
type APIKeyRequest = original.APIKeyRequest
|
||||
type ApplicationInsightsComponent = original.ApplicationInsightsComponent
|
||||
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
|
||||
@ -170,7 +170,7 @@ type ComponentPurgeBody = original.ComponentPurgeBody
|
||||
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
|
||||
type ComponentPurgeResponse = original.ComponentPurgeResponse
|
||||
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
|
||||
type ComponentsPurgeFuture = original.ComponentsPurgeFuture
|
||||
type ComponentsResource = original.ComponentsResource
|
||||
type ErrorFieldContract = original.ErrorFieldContract
|
||||
type ErrorResponse = original.ErrorResponse
|
||||
type InnerError = original.InnerError
|
||||
@ -180,13 +180,11 @@ type ListApplicationInsightsComponentAnalyticsItem = original.ListApplicationIns
|
||||
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
|
||||
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
|
||||
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
|
||||
type ListWorkItemConfiguration = original.ListWorkItemConfiguration
|
||||
type Operation = original.Operation
|
||||
type OperationDisplay = original.OperationDisplay
|
||||
type OperationListResult = original.OperationListResult
|
||||
type OperationListResultIterator = original.OperationListResultIterator
|
||||
type OperationListResultPage = original.OperationListResultPage
|
||||
type Resource = original.Resource
|
||||
type SetObject = original.SetObject
|
||||
type TagsResource = original.TagsResource
|
||||
type WebTest = original.WebTest
|
||||
@ -196,26 +194,28 @@ type WebTestListResultIterator = original.WebTestListResultIterator
|
||||
type WebTestListResultPage = original.WebTestListResultPage
|
||||
type WebTestProperties = original.WebTestProperties
|
||||
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
|
||||
type WebtestsResource = original.WebtestsResource
|
||||
type Workbook = original.Workbook
|
||||
type WorkbookError = original.WorkbookError
|
||||
type WorkbookProperties = original.WorkbookProperties
|
||||
type Workbooks = original.Workbooks
|
||||
type WorkbookResource = original.WorkbookResource
|
||||
type WorkbooksListResult = original.WorkbooksListResult
|
||||
type WorkItemConfiguration = original.WorkItemConfiguration
|
||||
type WorkItemConfigurationError = original.WorkItemConfigurationError
|
||||
type WorkItemConfigurationsListResult = original.WorkItemConfigurationsListResult
|
||||
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
|
||||
type OperationsClient = original.OperationsClient
|
||||
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
|
||||
type WebTestLocationsClient = original.WebTestLocationsClient
|
||||
type WebTestsClient = original.WebTestsClient
|
||||
type WorkbookClient = original.WorkbookClient
|
||||
type WorkbooksClient = original.WorkbooksClient
|
||||
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
|
||||
|
||||
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient {
|
||||
return original.NewAnalyticsItemClient(subscriptionID)
|
||||
func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
|
||||
return original.NewAnalyticsItemsClient(subscriptionID)
|
||||
}
|
||||
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient {
|
||||
return original.NewAnalyticsItemClientWithBaseURI(baseURI, subscriptionID)
|
||||
func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
|
||||
return original.NewAnalyticsItemsClientWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
|
||||
return original.NewAnnotationsClient(subscriptionID)
|
||||
@ -271,12 +271,6 @@ func NewExportConfigurationsClient(subscriptionID string) ExportConfigurationsCl
|
||||
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
|
||||
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 {
|
||||
return original.NewFavoritesClient(subscriptionID)
|
||||
}
|
||||
@ -352,12 +346,6 @@ func NewWebTestsClient(subscriptionID string) WebTestsClient {
|
||||
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
|
||||
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 {
|
||||
return original.NewWorkbooksClient(subscriptionID)
|
||||
}
|
||||
|
@ -82,6 +82,13 @@ const (
|
||||
DscConfigurationStatePublished DscConfigurationState = original.DscConfigurationStatePublished
|
||||
)
|
||||
|
||||
type GroupTypeEnum = original.GroupTypeEnum
|
||||
|
||||
const (
|
||||
System GroupTypeEnum = original.System
|
||||
User GroupTypeEnum = original.User
|
||||
)
|
||||
|
||||
type HTTPStatusCode = original.HTTPStatusCode
|
||||
|
||||
const (
|
||||
@ -184,6 +191,7 @@ type KeyPermissions = original.KeyPermissions
|
||||
|
||||
const (
|
||||
Full KeyPermissions = original.Full
|
||||
Read KeyPermissions = original.Read
|
||||
)
|
||||
|
||||
type ModuleProvisioningState = original.ModuleProvisioningState
|
||||
@ -277,6 +285,7 @@ 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
|
||||
@ -373,7 +382,6 @@ type JobListResult = original.JobListResult
|
||||
type JobListResultIterator = original.JobListResultIterator
|
||||
type JobListResultPage = original.JobListResultPage
|
||||
type JobProperties = original.JobProperties
|
||||
type JobProvisioningStateProperty = original.JobProvisioningStateProperty
|
||||
type JobSchedule = original.JobSchedule
|
||||
type JobScheduleCreateParameters = original.JobScheduleCreateParameters
|
||||
type JobScheduleCreateProperties = original.JobScheduleCreateProperties
|
||||
@ -438,9 +446,9 @@ type Sku = original.Sku
|
||||
type Statistics = original.Statistics
|
||||
type StatisticsListResult = original.StatisticsListResult
|
||||
type String = original.String
|
||||
type SubResource = original.SubResource
|
||||
type TestJob = original.TestJob
|
||||
type TestJobCreateParameters = original.TestJobCreateParameters
|
||||
type TrackedResource = original.TrackedResource
|
||||
type TypeField = original.TypeField
|
||||
type TypeFieldListResult = original.TypeFieldListResult
|
||||
type Usage = original.Usage
|
||||
@ -613,6 +621,9 @@ func PossibleDscConfigurationProvisioningStateValues() []DscConfigurationProvisi
|
||||
func PossibleDscConfigurationStateValues() []DscConfigurationState {
|
||||
return original.PossibleDscConfigurationStateValues()
|
||||
}
|
||||
func PossibleGroupTypeEnumValues() []GroupTypeEnum {
|
||||
return original.PossibleGroupTypeEnumValues()
|
||||
}
|
||||
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
|
||||
return original.PossibleHTTPStatusCodeValues()
|
||||
}
|
||||
|
@ -46,13 +46,6 @@ const (
|
||||
Landmarks Details = original.Landmarks
|
||||
)
|
||||
|
||||
type DomainModels = original.DomainModels
|
||||
|
||||
const (
|
||||
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
|
||||
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
|
||||
)
|
||||
|
||||
type ErrorCodes = original.ErrorCodes
|
||||
|
||||
const (
|
||||
@ -135,8 +128,8 @@ type AdultInfo = original.AdultInfo
|
||||
type Category = original.Category
|
||||
type CategoryDetail = original.CategoryDetail
|
||||
type CelebritiesModel = original.CelebritiesModel
|
||||
type CelebrityResults = original.CelebrityResults
|
||||
type ColorInfo = original.ColorInfo
|
||||
type DomainModelResult = original.DomainModelResult
|
||||
type DomainModelResults = original.DomainModelResults
|
||||
type Error = original.Error
|
||||
type FaceDescription = original.FaceDescription
|
||||
@ -149,6 +142,8 @@ type ImageMetadata = original.ImageMetadata
|
||||
type ImageTag = original.ImageTag
|
||||
type ImageType = original.ImageType
|
||||
type ImageURL = original.ImageURL
|
||||
type LandmarkResults = original.LandmarkResults
|
||||
type LandmarkResultsLandmarksItem = original.LandmarkResultsLandmarksItem
|
||||
type Line = original.Line
|
||||
type ListModelsResult = original.ListModelsResult
|
||||
type ModelDescription = original.ModelDescription
|
||||
@ -174,9 +169,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
|
||||
func PossibleDetailsValues() []Details {
|
||||
return original.PossibleDetailsValues()
|
||||
}
|
||||
func PossibleDomainModelsValues() []DomainModels {
|
||||
return original.PossibleDomainModelsValues()
|
||||
}
|
||||
func PossibleErrorCodesValues() []ErrorCodes {
|
||||
return original.PossibleErrorCodesValues()
|
||||
}
|
||||
|
@ -56,12 +56,16 @@ type AzureRegions = original.AzureRegions
|
||||
const (
|
||||
Australiaeast AzureRegions = original.Australiaeast
|
||||
Brazilsouth AzureRegions = original.Brazilsouth
|
||||
Canadacentral AzureRegions = original.Canadacentral
|
||||
Centralindia AzureRegions = original.Centralindia
|
||||
Eastasia AzureRegions = original.Eastasia
|
||||
Eastus AzureRegions = original.Eastus
|
||||
Eastus2 AzureRegions = original.Eastus2
|
||||
Japaneast AzureRegions = original.Japaneast
|
||||
Northeurope AzureRegions = original.Northeurope
|
||||
Southcentralus AzureRegions = original.Southcentralus
|
||||
Southeastasia AzureRegions = original.Southeastasia
|
||||
Uksouth AzureRegions = original.Uksouth
|
||||
Westcentralus AzureRegions = original.Westcentralus
|
||||
Westeurope AzureRegions = original.Westeurope
|
||||
Westus AzureRegions = original.Westus
|
||||
|
@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
|
||||
const (
|
||||
Australiaeast AzureRegions = original.Australiaeast
|
||||
Brazilsouth AzureRegions = original.Brazilsouth
|
||||
Canadacentral AzureRegions = original.Canadacentral
|
||||
Centralindia AzureRegions = original.Centralindia
|
||||
Eastasia AzureRegions = original.Eastasia
|
||||
Eastus AzureRegions = original.Eastus
|
||||
Eastus2 AzureRegions = original.Eastus2
|
||||
Japaneast AzureRegions = original.Japaneast
|
||||
Northeurope AzureRegions = original.Northeurope
|
||||
Southcentralus AzureRegions = original.Southcentralus
|
||||
Southeastasia AzureRegions = original.Southeastasia
|
||||
Uksouth AzureRegions = original.Uksouth
|
||||
Westcentralus AzureRegions = original.Westcentralus
|
||||
Westeurope AzureRegions = original.Westeurope
|
||||
Westus AzureRegions = original.Westus
|
||||
|
@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
|
||||
const (
|
||||
Australiaeast AzureRegions = original.Australiaeast
|
||||
Brazilsouth AzureRegions = original.Brazilsouth
|
||||
Canadacentral AzureRegions = original.Canadacentral
|
||||
Centralindia AzureRegions = original.Centralindia
|
||||
Eastasia AzureRegions = original.Eastasia
|
||||
Eastus AzureRegions = original.Eastus
|
||||
Eastus2 AzureRegions = original.Eastus2
|
||||
Japaneast AzureRegions = original.Japaneast
|
||||
Northeurope AzureRegions = original.Northeurope
|
||||
Southcentralus AzureRegions = original.Southcentralus
|
||||
Southeastasia AzureRegions = original.Southeastasia
|
||||
Uksouth AzureRegions = original.Uksouth
|
||||
Westcentralus AzureRegions = original.Westcentralus
|
||||
Westeurope AzureRegions = original.Westeurope
|
||||
Westus AzureRegions = original.Westus
|
||||
|
@ -58,6 +58,8 @@ type BaiduCredentialProperties = original.BaiduCredentialProperties
|
||||
type CheckAvailabilityParameters = original.CheckAvailabilityParameters
|
||||
type CheckAvailabilityResult = original.CheckAvailabilityResult
|
||||
type CreateOrUpdateParameters = original.CreateOrUpdateParameters
|
||||
type DebugSendResponse = original.DebugSendResponse
|
||||
type DebugSendResult = original.DebugSendResult
|
||||
type ErrorResponse = original.ErrorResponse
|
||||
type GcmCredential = original.GcmCredential
|
||||
type GcmCredentialProperties = original.GcmCredentialProperties
|
||||
@ -79,6 +81,7 @@ type OperationDisplay = original.OperationDisplay
|
||||
type OperationListResult = original.OperationListResult
|
||||
type OperationListResultIterator = original.OperationListResultIterator
|
||||
type OperationListResultPage = original.OperationListResultPage
|
||||
type PatchParameters = original.PatchParameters
|
||||
type PnsCredentialsProperties = original.PnsCredentialsProperties
|
||||
type PnsCredentialsResource = original.PnsCredentialsResource
|
||||
type PolicykeyResource = original.PolicykeyResource
|
||||
|
@ -67,7 +67,6 @@ type SearchParameters = original.SearchParameters
|
||||
type SearchResultsResponse = original.SearchResultsResponse
|
||||
type SearchSchemaValue = original.SearchSchemaValue
|
||||
type SearchSort = original.SearchSort
|
||||
type SetObject = original.SetObject
|
||||
type StorageAccount = original.StorageAccount
|
||||
type StorageInsight = original.StorageInsight
|
||||
type StorageInsightListResult = original.StorageInsightListResult
|
||||
@ -81,7 +80,6 @@ type WorkspacePurgeBodyFilters = original.WorkspacePurgeBodyFilters
|
||||
type WorkspacePurgeResponse = original.WorkspacePurgeResponse
|
||||
type WorkspacePurgeStatusResponse = original.WorkspacePurgeStatusResponse
|
||||
type WorkspacesGetSearchResultsFuture = original.WorkspacesGetSearchResultsFuture
|
||||
type WorkspacesPurgeFuture = original.WorkspacesPurgeFuture
|
||||
type OperationsClient = original.OperationsClient
|
||||
type SavedSearchesClient = original.SavedSearchesClient
|
||||
type StorageInsightsClient = original.StorageInsightsClient
|
||||
|
@ -52,17 +52,22 @@ const (
|
||||
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
|
||||
ContainerTypeCluster ContainerType = original.ContainerTypeCluster
|
||||
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
|
||||
ContainerTypeExchangeDAG ContainerType = original.ContainerTypeExchangeDAG
|
||||
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
|
||||
ContainerTypeHyperVCluster ContainerType = original.ContainerTypeHyperVCluster
|
||||
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
|
||||
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
|
||||
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
|
||||
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
|
||||
ContainerTypeSharepointFarm ContainerType = original.ContainerTypeSharepointFarm
|
||||
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
|
||||
ContainerTypeSQLCluster ContainerType = original.ContainerTypeSQLCluster
|
||||
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
|
||||
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
|
||||
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
|
||||
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
|
||||
ContainerTypeWindows ContainerType = original.ContainerTypeWindows
|
||||
ContainerTypeWindowsClient ContainerType = original.ContainerTypeWindowsClient
|
||||
)
|
||||
|
||||
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
|
||||
@ -74,13 +79,13 @@ const (
|
||||
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
|
||||
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
|
||||
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
|
||||
ContainerTypeMABWindowsContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeMABWindowsContainer
|
||||
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
|
||||
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
|
||||
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
|
||||
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
|
||||
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
|
||||
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
|
||||
ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1
|
||||
)
|
||||
|
||||
type CopyOptions = original.CopyOptions
|
||||
@ -93,6 +98,14 @@ const (
|
||||
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
|
||||
|
||||
const (
|
||||
@ -103,6 +116,7 @@ const (
|
||||
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
|
||||
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
|
||||
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
|
||||
DataSourceTypeSAPHanaDatabase DataSourceType = original.DataSourceTypeSAPHanaDatabase
|
||||
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
|
||||
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
|
||||
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
|
||||
@ -149,6 +163,7 @@ const (
|
||||
type FeatureType = original.FeatureType
|
||||
|
||||
const (
|
||||
FeatureTypeAzureBackupGoals FeatureType = original.FeatureTypeAzureBackupGoals
|
||||
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
|
||||
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
|
||||
)
|
||||
@ -241,6 +256,7 @@ const (
|
||||
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
|
||||
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
|
||||
ItemTypeInvalid ItemType = original.ItemTypeInvalid
|
||||
ItemTypeSAPHanaDatabase ItemType = original.ItemTypeSAPHanaDatabase
|
||||
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
|
||||
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
|
||||
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
|
||||
@ -309,17 +325,22 @@ const (
|
||||
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
|
||||
MabServerTypeCluster MabServerType = original.MabServerTypeCluster
|
||||
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
|
||||
MabServerTypeExchangeDAG MabServerType = original.MabServerTypeExchangeDAG
|
||||
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
|
||||
MabServerTypeHyperVCluster MabServerType = original.MabServerTypeHyperVCluster
|
||||
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
|
||||
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
|
||||
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
|
||||
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
|
||||
MabServerTypeSharepointFarm MabServerType = original.MabServerTypeSharepointFarm
|
||||
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
|
||||
MabServerTypeSQLCluster MabServerType = original.MabServerTypeSQLCluster
|
||||
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
|
||||
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
|
||||
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
|
||||
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
|
||||
MabServerTypeWindows MabServerType = original.MabServerTypeWindows
|
||||
MabServerTypeWindowsClient MabServerType = original.MabServerTypeWindowsClient
|
||||
)
|
||||
|
||||
type ManagementType = original.ManagementType
|
||||
@ -402,24 +423,28 @@ const (
|
||||
type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint
|
||||
|
||||
const (
|
||||
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
|
||||
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
|
||||
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
|
||||
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
|
||||
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
|
||||
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
|
||||
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
|
||||
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
|
||||
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
|
||||
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
|
||||
)
|
||||
|
||||
type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest
|
||||
|
||||
const (
|
||||
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
|
||||
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
|
||||
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
|
||||
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
|
||||
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
|
||||
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
|
||||
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
|
||||
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
|
||||
ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest
|
||||
ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest
|
||||
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
|
||||
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
|
||||
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
|
||||
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
|
||||
)
|
||||
|
||||
type OperationStatusValues = original.OperationStatusValues
|
||||
@ -456,6 +481,8 @@ const (
|
||||
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
|
||||
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
|
||||
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
|
||||
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
|
||||
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
|
||||
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
|
||||
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
|
||||
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
|
||||
@ -488,6 +515,8 @@ type ProtectedItemType = original.ProtectedItemType
|
||||
const (
|
||||
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
|
||||
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
|
||||
ProtectedItemTypeAzureVMWorkloadProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadProtectedItem
|
||||
ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase
|
||||
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
|
||||
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
|
||||
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
|
||||
@ -501,8 +530,11 @@ const (
|
||||
type ProtectionIntentItemType = original.ProtectionIntentItemType
|
||||
|
||||
const (
|
||||
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
|
||||
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
|
||||
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
|
||||
ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent
|
||||
ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent
|
||||
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
|
||||
ProtectionIntentItemTypeRecoveryServiceVaultItem ProtectionIntentItemType = original.ProtectionIntentItemTypeRecoveryServiceVaultItem
|
||||
)
|
||||
|
||||
type ProtectionState = original.ProtectionState
|
||||
@ -697,25 +729,30 @@ const (
|
||||
type WeekOfMonth = original.WeekOfMonth
|
||||
|
||||
const (
|
||||
First WeekOfMonth = original.First
|
||||
Fourth WeekOfMonth = original.Fourth
|
||||
Last WeekOfMonth = original.Last
|
||||
Second WeekOfMonth = original.Second
|
||||
Third WeekOfMonth = original.Third
|
||||
WeekOfMonthFirst WeekOfMonth = original.WeekOfMonthFirst
|
||||
WeekOfMonthFourth WeekOfMonth = original.WeekOfMonthFourth
|
||||
WeekOfMonthInvalid WeekOfMonth = original.WeekOfMonthInvalid
|
||||
WeekOfMonthLast WeekOfMonth = original.WeekOfMonthLast
|
||||
WeekOfMonthSecond WeekOfMonth = original.WeekOfMonthSecond
|
||||
WeekOfMonthThird WeekOfMonth = original.WeekOfMonthThird
|
||||
)
|
||||
|
||||
type WorkloadItemType = original.WorkloadItemType
|
||||
|
||||
const (
|
||||
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
|
||||
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
|
||||
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
|
||||
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
|
||||
WorkloadItemTypeSAPHanaDatabase WorkloadItemType = original.WorkloadItemTypeSAPHanaDatabase
|
||||
WorkloadItemTypeSAPHanaSystem WorkloadItemType = original.WorkloadItemTypeSAPHanaSystem
|
||||
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
|
||||
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
|
||||
)
|
||||
|
||||
type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem
|
||||
|
||||
const (
|
||||
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
|
||||
WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1
|
||||
WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1
|
||||
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
|
||||
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
|
||||
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
|
||||
@ -731,6 +768,7 @@ const (
|
||||
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
|
||||
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
|
||||
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
|
||||
WorkloadTypeSAPHanaDatabase WorkloadType = original.WorkloadTypeSAPHanaDatabase
|
||||
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
|
||||
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
|
||||
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
|
||||
@ -739,6 +777,7 @@ const (
|
||||
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
|
||||
)
|
||||
|
||||
type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest
|
||||
type AzureBackupServerContainer = original.AzureBackupServerContainer
|
||||
type AzureBackupServerEngine = original.AzureBackupServerEngine
|
||||
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
|
||||
@ -763,6 +802,8 @@ type BasicAzureIaaSVMProtectedItem = original.BasicAzureIaaSVMProtectedItem
|
||||
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
|
||||
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
|
||||
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
|
||||
type BasicAzureRecoveryServiceVaultProtectionIntent = original.BasicAzureRecoveryServiceVaultProtectionIntent
|
||||
type AzureRecoveryServiceVaultProtectionIntent = original.AzureRecoveryServiceVaultProtectionIntent
|
||||
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
|
||||
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
|
||||
type AzureSQLContainer = original.AzureSQLContainer
|
||||
@ -783,14 +824,23 @@ type BasicAzureVMWorkloadItem = original.BasicAzureVMWorkloadItem
|
||||
type AzureVMWorkloadItem = original.AzureVMWorkloadItem
|
||||
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
|
||||
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
|
||||
type BasicAzureVMWorkloadProtectedItem = original.BasicAzureVMWorkloadProtectedItem
|
||||
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
|
||||
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
|
||||
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 AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
|
||||
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
|
||||
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
|
||||
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
|
||||
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
|
||||
type BasicAzureWorkloadAutoProtectionIntent = original.BasicAzureWorkloadAutoProtectionIntent
|
||||
type AzureWorkloadAutoProtectionIntent = original.AzureWorkloadAutoProtectionIntent
|
||||
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
|
||||
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
|
||||
type AzureWorkloadContainer = original.AzureWorkloadContainer
|
||||
@ -803,6 +853,13 @@ type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint
|
||||
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
|
||||
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
|
||||
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 AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
|
||||
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
|
||||
@ -815,6 +872,7 @@ type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject
|
||||
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
|
||||
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
|
||||
type BMSContainerQueryObject = original.BMSContainerQueryObject
|
||||
type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject
|
||||
type BMSPOQueryObject = original.BMSPOQueryObject
|
||||
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
|
||||
type BMSRPQueryObject = original.BMSRPQueryObject
|
||||
@ -1102,6 +1160,9 @@ func PossibleContainerTypeBasicProtectionContainerValues() []ContainerTypeBasicP
|
||||
func PossibleCopyOptionsValues() []CopyOptions {
|
||||
return original.PossibleCopyOptionsValues()
|
||||
}
|
||||
func PossibleCreateModeValues() []CreateMode {
|
||||
return original.PossibleCreateModeValues()
|
||||
}
|
||||
func PossibleDataSourceTypeValues() []DataSourceType {
|
||||
return original.PossibleDataSourceTypeValues()
|
||||
}
|
||||
|
@ -22,8 +22,12 @@ package adhybridhealthservice
|
||||
import original "github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice"
|
||||
|
||||
type AdDomainServiceMembersClient = original.AdDomainServiceMembersClient
|
||||
type AddsServiceClient = original.AddsServiceClient
|
||||
type AddsServiceMembersClient = original.AddsServiceMembersClient
|
||||
type AddsServicesClient = original.AddsServicesClient
|
||||
type AddsServicesReplicationStatusClient = original.AddsServicesReplicationStatusClient
|
||||
type AddsServicesServiceMembersClient = original.AddsServicesServiceMembersClient
|
||||
type AddsServicesUserPreferenceClient = original.AddsServicesUserPreferenceClient
|
||||
type AlertsClient = original.AlertsClient
|
||||
|
||||
const (
|
||||
@ -230,6 +234,7 @@ type Partition = original.Partition
|
||||
type PartitionScope = original.PartitionScope
|
||||
type PasswordHashSyncConfiguration = original.PasswordHashSyncConfiguration
|
||||
type PasswordManagementSettings = original.PasswordManagementSettings
|
||||
type ReplicationDetailsList = original.ReplicationDetailsList
|
||||
type ReplicationStatus = original.ReplicationStatus
|
||||
type ReplicationSummary = original.ReplicationSummary
|
||||
type ReplicationSummaryList = original.ReplicationSummaryList
|
||||
@ -250,8 +255,11 @@ type ServicesPage = original.ServicesPage
|
||||
type TabularExportError = original.TabularExportError
|
||||
type Tenant = original.Tenant
|
||||
type TenantOnboardingDetails = original.TenantOnboardingDetails
|
||||
type UserPreference = original.UserPreference
|
||||
type ValueDelta = original.ValueDelta
|
||||
type OperationsClient = original.OperationsClient
|
||||
type ReportsClient = original.ReportsClient
|
||||
type ServiceClient = original.ServiceClient
|
||||
type ServiceMembersClient = original.ServiceMembersClient
|
||||
type ServicesClient = original.ServicesClient
|
||||
|
||||
@ -261,6 +269,12 @@ func NewAdDomainServiceMembersClient() AdDomainServiceMembersClient {
|
||||
func NewAdDomainServiceMembersClientWithBaseURI(baseURI string) AdDomainServiceMembersClient {
|
||||
return original.NewAdDomainServiceMembersClientWithBaseURI(baseURI)
|
||||
}
|
||||
func NewAddsServiceClient() AddsServiceClient {
|
||||
return original.NewAddsServiceClient()
|
||||
}
|
||||
func NewAddsServiceClientWithBaseURI(baseURI string) AddsServiceClient {
|
||||
return original.NewAddsServiceClientWithBaseURI(baseURI)
|
||||
}
|
||||
func NewAddsServiceMembersClient() AddsServiceMembersClient {
|
||||
return original.NewAddsServiceMembersClient()
|
||||
}
|
||||
@ -273,6 +287,24 @@ func NewAddsServicesClient() AddsServicesClient {
|
||||
func NewAddsServicesClientWithBaseURI(baseURI string) AddsServicesClient {
|
||||
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 {
|
||||
return original.NewAlertsClient()
|
||||
}
|
||||
@ -336,6 +368,18 @@ func NewOperationsClient() OperationsClient {
|
||||
func NewOperationsClientWithBaseURI(baseURI string) OperationsClient {
|
||||
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 {
|
||||
return original.NewServiceMembersClient()
|
||||
}
|
||||
|
@ -64,7 +64,6 @@ type OperationEntityListResult = original.OperationEntityListResult
|
||||
type OperationEntityListResultIterator = original.OperationEntityListResultIterator
|
||||
type OperationEntityListResultPage = original.OperationEntityListResultPage
|
||||
type RecommendationProperties = original.RecommendationProperties
|
||||
type RecommendationsGetGenerateStatusFuture = original.RecommendationsGetGenerateStatusFuture
|
||||
type Resource = original.Resource
|
||||
type ResourceRecommendationBase = original.ResourceRecommendationBase
|
||||
type ResourceRecommendationBaseListResult = original.ResourceRecommendationBaseListResult
|
||||
|
@ -21,7 +21,7 @@ package 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 APIKeysClient = original.APIKeysClient
|
||||
|
||||
@ -36,7 +36,6 @@ type ComponentFeatureCapabilitiesClient = original.ComponentFeatureCapabilitiesC
|
||||
type ComponentQuotaStatusClient = original.ComponentQuotaStatusClient
|
||||
type ComponentsClient = original.ComponentsClient
|
||||
type ExportConfigurationsClient = original.ExportConfigurationsClient
|
||||
type FavoriteClient = original.FavoriteClient
|
||||
type FavoritesClient = original.FavoritesClient
|
||||
type ApplicationType = original.ApplicationType
|
||||
|
||||
@ -142,6 +141,7 @@ const (
|
||||
|
||||
type Annotation = original.Annotation
|
||||
type AnnotationError = original.AnnotationError
|
||||
type AnnotationsListResult = original.AnnotationsListResult
|
||||
type APIKeyRequest = original.APIKeyRequest
|
||||
type ApplicationInsightsComponent = original.ApplicationInsightsComponent
|
||||
type ApplicationInsightsComponentAnalyticsItem = original.ApplicationInsightsComponentAnalyticsItem
|
||||
@ -170,7 +170,7 @@ type ComponentPurgeBody = original.ComponentPurgeBody
|
||||
type ComponentPurgeBodyFilters = original.ComponentPurgeBodyFilters
|
||||
type ComponentPurgeResponse = original.ComponentPurgeResponse
|
||||
type ComponentPurgeStatusResponse = original.ComponentPurgeStatusResponse
|
||||
type ComponentsPurgeFuture = original.ComponentsPurgeFuture
|
||||
type ComponentsResource = original.ComponentsResource
|
||||
type ErrorFieldContract = original.ErrorFieldContract
|
||||
type ErrorResponse = original.ErrorResponse
|
||||
type InnerError = original.InnerError
|
||||
@ -180,13 +180,11 @@ type ListApplicationInsightsComponentAnalyticsItem = original.ListApplicationIns
|
||||
type ListApplicationInsightsComponentExportConfiguration = original.ListApplicationInsightsComponentExportConfiguration
|
||||
type ListApplicationInsightsComponentFavorite = original.ListApplicationInsightsComponentFavorite
|
||||
type ListApplicationInsightsComponentProactiveDetectionConfiguration = original.ListApplicationInsightsComponentProactiveDetectionConfiguration
|
||||
type ListWorkItemConfiguration = original.ListWorkItemConfiguration
|
||||
type Operation = original.Operation
|
||||
type OperationDisplay = original.OperationDisplay
|
||||
type OperationListResult = original.OperationListResult
|
||||
type OperationListResultIterator = original.OperationListResultIterator
|
||||
type OperationListResultPage = original.OperationListResultPage
|
||||
type Resource = original.Resource
|
||||
type SetObject = original.SetObject
|
||||
type TagsResource = original.TagsResource
|
||||
type WebTest = original.WebTest
|
||||
@ -196,26 +194,28 @@ type WebTestListResultIterator = original.WebTestListResultIterator
|
||||
type WebTestListResultPage = original.WebTestListResultPage
|
||||
type WebTestProperties = original.WebTestProperties
|
||||
type WebTestPropertiesConfiguration = original.WebTestPropertiesConfiguration
|
||||
type WebtestsResource = original.WebtestsResource
|
||||
type Workbook = original.Workbook
|
||||
type WorkbookError = original.WorkbookError
|
||||
type WorkbookProperties = original.WorkbookProperties
|
||||
type Workbooks = original.Workbooks
|
||||
type WorkbookResource = original.WorkbookResource
|
||||
type WorkbooksListResult = original.WorkbooksListResult
|
||||
type WorkItemConfiguration = original.WorkItemConfiguration
|
||||
type WorkItemConfigurationError = original.WorkItemConfigurationError
|
||||
type WorkItemConfigurationsListResult = original.WorkItemConfigurationsListResult
|
||||
type WorkItemCreateConfiguration = original.WorkItemCreateConfiguration
|
||||
type OperationsClient = original.OperationsClient
|
||||
type ProactiveDetectionConfigurationsClient = original.ProactiveDetectionConfigurationsClient
|
||||
type WebTestLocationsClient = original.WebTestLocationsClient
|
||||
type WebTestsClient = original.WebTestsClient
|
||||
type WorkbookClient = original.WorkbookClient
|
||||
type WorkbooksClient = original.WorkbooksClient
|
||||
type WorkItemConfigurationsClient = original.WorkItemConfigurationsClient
|
||||
|
||||
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient {
|
||||
return original.NewAnalyticsItemClient(subscriptionID)
|
||||
func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
|
||||
return original.NewAnalyticsItemsClient(subscriptionID)
|
||||
}
|
||||
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient {
|
||||
return original.NewAnalyticsItemClientWithBaseURI(baseURI, subscriptionID)
|
||||
func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
|
||||
return original.NewAnalyticsItemsClientWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func NewAnnotationsClient(subscriptionID string) AnnotationsClient {
|
||||
return original.NewAnnotationsClient(subscriptionID)
|
||||
@ -271,12 +271,6 @@ func NewExportConfigurationsClient(subscriptionID string) ExportConfigurationsCl
|
||||
func NewExportConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ExportConfigurationsClient {
|
||||
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 {
|
||||
return original.NewFavoritesClient(subscriptionID)
|
||||
}
|
||||
@ -352,12 +346,6 @@ func NewWebTestsClient(subscriptionID string) WebTestsClient {
|
||||
func NewWebTestsClientWithBaseURI(baseURI string, subscriptionID string) WebTestsClient {
|
||||
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 {
|
||||
return original.NewWorkbooksClient(subscriptionID)
|
||||
}
|
||||
|
@ -112,8 +112,8 @@ const (
|
||||
Chainer ToolType = original.Chainer
|
||||
Cntk ToolType = original.Cntk
|
||||
Custom ToolType = original.Custom
|
||||
Custommpi ToolType = original.Custommpi
|
||||
Horovod ToolType = original.Horovod
|
||||
Mpi ToolType = original.Mpi
|
||||
Tensorflow ToolType = original.Tensorflow
|
||||
)
|
||||
|
||||
@ -242,6 +242,7 @@ type WorkspaceListResultPage = original.WorkspaceListResultPage
|
||||
type WorkspaceProperties = original.WorkspaceProperties
|
||||
type WorkspacesCreateFuture = original.WorkspacesCreateFuture
|
||||
type WorkspacesDeleteFuture = original.WorkspacesDeleteFuture
|
||||
type WorkspaceUpdateParameters = original.WorkspaceUpdateParameters
|
||||
type OperationsClient = original.OperationsClient
|
||||
type UsagesClient = original.UsagesClient
|
||||
type WorkspacesClient = original.WorkspacesClient
|
||||
|
176
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/cognitiveservices/autosuggest/models.go
generated
vendored
Normal file
176
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/cognitiveservices/autosuggest/models.go
generated
vendored
Normal 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()
|
||||
}
|
@ -19,7 +19,7 @@
|
||||
|
||||
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 AzureRegions = original.AzureRegions
|
||||
@ -46,13 +46,6 @@ const (
|
||||
Landmarks Details = original.Landmarks
|
||||
)
|
||||
|
||||
type DomainModels = original.DomainModels
|
||||
|
||||
const (
|
||||
DomainModelsCelebrities DomainModels = original.DomainModelsCelebrities
|
||||
DomainModelsLandmarks DomainModels = original.DomainModelsLandmarks
|
||||
)
|
||||
|
||||
type ErrorCodes = original.ErrorCodes
|
||||
|
||||
const (
|
||||
@ -119,6 +112,13 @@ const (
|
||||
Succeeded TextOperationStatusCodes = original.Succeeded
|
||||
)
|
||||
|
||||
type TextRecognitionMode = original.TextRecognitionMode
|
||||
|
||||
const (
|
||||
Handwritten TextRecognitionMode = original.Handwritten
|
||||
Printed TextRecognitionMode = original.Printed
|
||||
)
|
||||
|
||||
type VisualFeatureTypes = original.VisualFeatureTypes
|
||||
|
||||
const (
|
||||
@ -135,8 +135,8 @@ type AdultInfo = original.AdultInfo
|
||||
type Category = original.Category
|
||||
type CategoryDetail = original.CategoryDetail
|
||||
type CelebritiesModel = original.CelebritiesModel
|
||||
type CelebrityResults = original.CelebrityResults
|
||||
type ColorInfo = original.ColorInfo
|
||||
type DomainModelResult = original.DomainModelResult
|
||||
type DomainModelResults = original.DomainModelResults
|
||||
type Error = original.Error
|
||||
type FaceDescription = original.FaceDescription
|
||||
@ -149,6 +149,8 @@ type ImageMetadata = original.ImageMetadata
|
||||
type ImageTag = original.ImageTag
|
||||
type ImageType = original.ImageType
|
||||
type ImageURL = original.ImageURL
|
||||
type LandmarkResults = original.LandmarkResults
|
||||
type LandmarksModel = original.LandmarksModel
|
||||
type Line = original.Line
|
||||
type ListModelsResult = original.ListModelsResult
|
||||
type ModelDescription = original.ModelDescription
|
||||
@ -174,9 +176,6 @@ func PossibleAzureRegionsValues() []AzureRegions {
|
||||
func PossibleDetailsValues() []Details {
|
||||
return original.PossibleDetailsValues()
|
||||
}
|
||||
func PossibleDomainModelsValues() []DomainModels {
|
||||
return original.PossibleDomainModelsValues()
|
||||
}
|
||||
func PossibleErrorCodesValues() []ErrorCodes {
|
||||
return original.PossibleErrorCodesValues()
|
||||
}
|
||||
@ -189,6 +188,9 @@ func PossibleOcrLanguagesValues() []OcrLanguages {
|
||||
func PossibleTextOperationStatusCodesValues() []TextOperationStatusCodes {
|
||||
return original.PossibleTextOperationStatusCodesValues()
|
||||
}
|
||||
func PossibleTextRecognitionModeValues() []TextRecognitionMode {
|
||||
return original.PossibleTextRecognitionModeValues()
|
||||
}
|
||||
func PossibleVisualFeatureTypesValues() []VisualFeatureTypes {
|
||||
return original.PossibleVisualFeatureTypesValues()
|
||||
}
|
||||
|
@ -56,12 +56,16 @@ type AzureRegions = original.AzureRegions
|
||||
const (
|
||||
Australiaeast AzureRegions = original.Australiaeast
|
||||
Brazilsouth AzureRegions = original.Brazilsouth
|
||||
Canadacentral AzureRegions = original.Canadacentral
|
||||
Centralindia AzureRegions = original.Centralindia
|
||||
Eastasia AzureRegions = original.Eastasia
|
||||
Eastus AzureRegions = original.Eastus
|
||||
Eastus2 AzureRegions = original.Eastus2
|
||||
Japaneast AzureRegions = original.Japaneast
|
||||
Northeurope AzureRegions = original.Northeurope
|
||||
Southcentralus AzureRegions = original.Southcentralus
|
||||
Southeastasia AzureRegions = original.Southeastasia
|
||||
Uksouth AzureRegions = original.Uksouth
|
||||
Westcentralus AzureRegions = original.Westcentralus
|
||||
Westeurope AzureRegions = original.Westeurope
|
||||
Westus AzureRegions = original.Westus
|
||||
|
@ -31,12 +31,16 @@ type AzureRegions = original.AzureRegions
|
||||
const (
|
||||
Australiaeast AzureRegions = original.Australiaeast
|
||||
Brazilsouth AzureRegions = original.Brazilsouth
|
||||
Canadacentral AzureRegions = original.Canadacentral
|
||||
Centralindia AzureRegions = original.Centralindia
|
||||
Eastasia AzureRegions = original.Eastasia
|
||||
Eastus AzureRegions = original.Eastus
|
||||
Eastus2 AzureRegions = original.Eastus2
|
||||
Japaneast AzureRegions = original.Japaneast
|
||||
Northeurope AzureRegions = original.Northeurope
|
||||
Southcentralus AzureRegions = original.Southcentralus
|
||||
Southeastasia AzureRegions = original.Southeastasia
|
||||
Uksouth AzureRegions = original.Uksouth
|
||||
Westcentralus AzureRegions = original.Westcentralus
|
||||
Westeurope AzureRegions = original.Westeurope
|
||||
Westus AzureRegions = original.Westus
|
||||
|
@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
|
||||
const (
|
||||
Australiaeast AzureRegions = original.Australiaeast
|
||||
Brazilsouth AzureRegions = original.Brazilsouth
|
||||
Canadacentral AzureRegions = original.Canadacentral
|
||||
Centralindia AzureRegions = original.Centralindia
|
||||
Eastasia AzureRegions = original.Eastasia
|
||||
Eastus AzureRegions = original.Eastus
|
||||
Eastus2 AzureRegions = original.Eastus2
|
||||
Japaneast AzureRegions = original.Japaneast
|
||||
Northeurope AzureRegions = original.Northeurope
|
||||
Southcentralus AzureRegions = original.Southcentralus
|
||||
Southeastasia AzureRegions = original.Southeastasia
|
||||
Uksouth AzureRegions = original.Uksouth
|
||||
Westcentralus AzureRegions = original.Westcentralus
|
||||
Westeurope AzureRegions = original.Westeurope
|
||||
Westus AzureRegions = original.Westus
|
||||
|
@ -27,12 +27,16 @@ type AzureRegions = original.AzureRegions
|
||||
const (
|
||||
Australiaeast AzureRegions = original.Australiaeast
|
||||
Brazilsouth AzureRegions = original.Brazilsouth
|
||||
Canadacentral AzureRegions = original.Canadacentral
|
||||
Centralindia AzureRegions = original.Centralindia
|
||||
Eastasia AzureRegions = original.Eastasia
|
||||
Eastus AzureRegions = original.Eastus
|
||||
Eastus2 AzureRegions = original.Eastus2
|
||||
Japaneast AzureRegions = original.Japaneast
|
||||
Northeurope AzureRegions = original.Northeurope
|
||||
Southcentralus AzureRegions = original.Southcentralus
|
||||
Southeastasia AzureRegions = original.Southeastasia
|
||||
Uksouth AzureRegions = original.Uksouth
|
||||
Westcentralus AzureRegions = original.Westcentralus
|
||||
Westeurope AzureRegions = original.Westeurope
|
||||
Westus AzureRegions = original.Westus
|
||||
|
@ -55,13 +55,24 @@ type Forecast = original.Forecast
|
||||
type ForecastProperties = original.ForecastProperties
|
||||
type ForecastPropertiesConfidenceLevelsItem = original.ForecastPropertiesConfidenceLevelsItem
|
||||
type ForecastsListResult = original.ForecastsListResult
|
||||
type MeterDetails = original.MeterDetails
|
||||
type Operation = original.Operation
|
||||
type OperationDisplay = original.OperationDisplay
|
||||
type OperationListResult = original.OperationListResult
|
||||
type OperationListResultIterator = original.OperationListResultIterator
|
||||
type OperationListResultPage = original.OperationListResultPage
|
||||
type PriceSheetModel = original.PriceSheetModel
|
||||
type PriceSheetProperties = original.PriceSheetProperties
|
||||
type PriceSheetResult = original.PriceSheetResult
|
||||
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 PriceSheetClient = original.PriceSheetClient
|
||||
type UsageDetailsClient = original.UsageDetailsClient
|
||||
|
||||
func New(subscriptionID string) BaseClient {
|
||||
return original.New(subscriptionID)
|
||||
@ -90,6 +101,18 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
|
||||
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
|
||||
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 {
|
||||
return original.UserAgent() + " profiles/preview"
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
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 (
|
||||
DefaultBaseURI = original.DefaultBaseURI
|
||||
@ -28,6 +28,19 @@ const (
|
||||
type BaseClient = original.BaseClient
|
||||
type ContainerServicesClient = original.ContainerServicesClient
|
||||
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
|
||||
|
||||
const (
|
||||
@ -244,7 +257,10 @@ type ListResult = original.ListResult
|
||||
type ListResultIterator = original.ListResultIterator
|
||||
type ListResultPage = original.ListResultPage
|
||||
type ManagedCluster = original.ManagedCluster
|
||||
type ManagedClusterAADProfile = original.ManagedClusterAADProfile
|
||||
type ManagedClusterAccessProfile = original.ManagedClusterAccessProfile
|
||||
type ManagedClusterAddonProfile = original.ManagedClusterAddonProfile
|
||||
type ManagedClusterAgentPoolProfile = original.ManagedClusterAgentPoolProfile
|
||||
type ManagedClusterListResult = original.ManagedClusterListResult
|
||||
type ManagedClusterListResultIterator = original.ManagedClusterListResultIterator
|
||||
type ManagedClusterListResultPage = original.ManagedClusterListResultPage
|
||||
@ -255,6 +271,10 @@ type ManagedClustersDeleteFuture = original.ManagedClustersDeleteFuture
|
||||
type ManagedClusterUpgradeProfile = original.ManagedClusterUpgradeProfile
|
||||
type ManagedClusterUpgradeProfileProperties = original.ManagedClusterUpgradeProfileProperties
|
||||
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 OrchestratorProfileType = original.OrchestratorProfileType
|
||||
type OrchestratorVersionProfile = original.OrchestratorVersionProfile
|
||||
@ -267,6 +287,7 @@ type SSHConfiguration = original.SSHConfiguration
|
||||
type SSHPublicKey = original.SSHPublicKey
|
||||
type VMDiagnostics = original.VMDiagnostics
|
||||
type WindowsProfile = original.WindowsProfile
|
||||
type OperationsClient = original.OperationsClient
|
||||
|
||||
func New(subscriptionID string) BaseClient {
|
||||
return original.New(subscriptionID)
|
||||
@ -286,6 +307,12 @@ func NewManagedClustersClient(subscriptionID string) ManagedClustersClient {
|
||||
func NewManagedClustersClientWithBaseURI(baseURI string, subscriptionID string) ManagedClustersClient {
|
||||
return original.NewManagedClustersClientWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func PossibleNetworkPluginValues() []NetworkPlugin {
|
||||
return original.PossibleNetworkPluginValues()
|
||||
}
|
||||
func PossibleNetworkPolicyValues() []NetworkPolicy {
|
||||
return original.PossibleNetworkPolicyValues()
|
||||
}
|
||||
func PossibleOrchestratorTypesValues() []OrchestratorTypes {
|
||||
return original.PossibleOrchestratorTypesValues()
|
||||
}
|
||||
@ -298,6 +325,12 @@ func PossibleStorageProfileTypesValues() []StorageProfileTypes {
|
||||
func PossibleVMSizeTypesValues() []VMSizeTypes {
|
||||
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 {
|
||||
return original.UserAgent() + " profiles/preview"
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
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
|
||||
|
||||
@ -42,14 +42,6 @@ const (
|
||||
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
|
||||
|
||||
const (
|
||||
@ -57,6 +49,13 @@ const (
|
||||
Upload AzureSearchIndexWriteBehaviorType = original.Upload
|
||||
)
|
||||
|
||||
type BlobEventTypes = original.BlobEventTypes
|
||||
|
||||
const (
|
||||
MicrosoftStorageBlobCreated BlobEventTypes = original.MicrosoftStorageBlobCreated
|
||||
MicrosoftStorageBlobDeleted BlobEventTypes = original.MicrosoftStorageBlobDeleted
|
||||
)
|
||||
|
||||
type CassandraSourceReadConsistencyLevels = original.CassandraSourceReadConsistencyLevels
|
||||
|
||||
const (
|
||||
@ -321,38 +320,6 @@ const (
|
||||
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
|
||||
|
||||
const (
|
||||
@ -379,6 +346,51 @@ const (
|
||||
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
|
||||
|
||||
const (
|
||||
@ -714,6 +726,14 @@ const (
|
||||
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
|
||||
|
||||
const (
|
||||
@ -809,6 +829,7 @@ const (
|
||||
type TypeBasicTrigger = original.TypeBasicTrigger
|
||||
|
||||
const (
|
||||
TypeBlobEventsTrigger TypeBasicTrigger = original.TypeBlobEventsTrigger
|
||||
TypeBlobTrigger TypeBasicTrigger = original.TypeBlobTrigger
|
||||
TypeMultiplePipelineTrigger TypeBasicTrigger = original.TypeMultiplePipelineTrigger
|
||||
TypeScheduleTrigger TypeBasicTrigger = original.TypeScheduleTrigger
|
||||
@ -830,9 +851,7 @@ type Activity = original.Activity
|
||||
type ActivityDependency = original.ActivityDependency
|
||||
type ActivityPolicy = original.ActivityPolicy
|
||||
type ActivityRun = original.ActivityRun
|
||||
type ActivityRunsListResponse = original.ActivityRunsListResponse
|
||||
type ActivityRunsListResponseIterator = original.ActivityRunsListResponseIterator
|
||||
type ActivityRunsListResponsePage = original.ActivityRunsListResponsePage
|
||||
type ActivityRunsQueryResponse = original.ActivityRunsQueryResponse
|
||||
type AmazonMWSLinkedService = original.AmazonMWSLinkedService
|
||||
type AmazonMWSLinkedServiceTypeProperties = original.AmazonMWSLinkedServiceTypeProperties
|
||||
type AmazonMWSObjectDataset = original.AmazonMWSObjectDataset
|
||||
@ -898,6 +917,8 @@ type AzureTableDataset = original.AzureTableDataset
|
||||
type AzureTableDatasetTypeProperties = original.AzureTableDatasetTypeProperties
|
||||
type AzureTableSink = original.AzureTableSink
|
||||
type AzureTableSource = original.AzureTableSource
|
||||
type BlobEventsTrigger = original.BlobEventsTrigger
|
||||
type BlobEventsTriggerTypeProperties = original.BlobEventsTriggerTypeProperties
|
||||
type BlobSink = original.BlobSink
|
||||
type BlobSource = original.BlobSource
|
||||
type BlobTrigger = original.BlobTrigger
|
||||
@ -907,6 +928,8 @@ type CassandraLinkedServiceTypeProperties = original.CassandraLinkedServiceTypeP
|
||||
type CassandraSource = original.CassandraSource
|
||||
type CassandraTableDataset = original.CassandraTableDataset
|
||||
type CassandraTableDatasetTypeProperties = original.CassandraTableDatasetTypeProperties
|
||||
type CloudError = original.CloudError
|
||||
type CloudErrorBody = original.CloudErrorBody
|
||||
type ConcurLinkedService = original.ConcurLinkedService
|
||||
type ConcurLinkedServiceTypeProperties = original.ConcurLinkedServiceTypeProperties
|
||||
type ConcurObjectDataset = original.ConcurObjectDataset
|
||||
@ -973,7 +996,6 @@ type EloquaLinkedService = original.EloquaLinkedService
|
||||
type EloquaLinkedServiceTypeProperties = original.EloquaLinkedServiceTypeProperties
|
||||
type EloquaObjectDataset = original.EloquaObjectDataset
|
||||
type EloquaSource = original.EloquaSource
|
||||
type ErrorResponse = original.ErrorResponse
|
||||
type ExecutePipelineActivity = original.ExecutePipelineActivity
|
||||
type ExecutePipelineActivityTypeProperties = original.ExecutePipelineActivityTypeProperties
|
||||
type ExecuteSSISPackageActivity = original.ExecuteSSISPackageActivity
|
||||
@ -982,11 +1004,14 @@ type BasicExecutionActivity = original.BasicExecutionActivity
|
||||
type ExecutionActivity = original.ExecutionActivity
|
||||
type Expression = original.Expression
|
||||
type Factory = original.Factory
|
||||
type FactoryGitHubConfiguration = original.FactoryGitHubConfiguration
|
||||
type FactoryIdentity = original.FactoryIdentity
|
||||
type FactoryListResponse = original.FactoryListResponse
|
||||
type FactoryListResponseIterator = original.FactoryListResponseIterator
|
||||
type FactoryListResponsePage = original.FactoryListResponsePage
|
||||
type FactoryProperties = original.FactoryProperties
|
||||
type BasicFactoryRepoConfiguration = original.BasicFactoryRepoConfiguration
|
||||
type FactoryRepoConfiguration = original.FactoryRepoConfiguration
|
||||
type FactoryRepoUpdate = original.FactoryRepoUpdate
|
||||
type FactoryUpdateParameters = original.FactoryUpdateParameters
|
||||
type FactoryVSTSConfiguration = original.FactoryVSTSConfiguration
|
||||
@ -1066,7 +1091,6 @@ type IntegrationRuntimeNodeIPAddress = original.IntegrationRuntimeNodeIPAddress
|
||||
type IntegrationRuntimeNodeMonitoringData = original.IntegrationRuntimeNodeMonitoringData
|
||||
type IntegrationRuntimeReference = original.IntegrationRuntimeReference
|
||||
type IntegrationRuntimeRegenerateKeyParameters = original.IntegrationRuntimeRegenerateKeyParameters
|
||||
type IntegrationRuntimeRemoveNodeRequest = original.IntegrationRuntimeRemoveNodeRequest
|
||||
type IntegrationRuntimeResource = original.IntegrationRuntimeResource
|
||||
type IntegrationRuntimeSsisCatalogInfo = original.IntegrationRuntimeSsisCatalogInfo
|
||||
type IntegrationRuntimeSsisProperties = original.IntegrationRuntimeSsisProperties
|
||||
@ -1082,12 +1106,6 @@ type JiraLinkedServiceTypeProperties = original.JiraLinkedServiceTypeProperties
|
||||
type JiraObjectDataset = original.JiraObjectDataset
|
||||
type JiraSource = original.JiraSource
|
||||
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 LinkedService = original.LinkedService
|
||||
type LinkedServiceListResponse = original.LinkedServiceListResponse
|
||||
@ -1139,8 +1157,11 @@ type OdbcSink = original.OdbcSink
|
||||
type Operation = original.Operation
|
||||
type OperationDisplay = original.OperationDisplay
|
||||
type OperationListResponse = original.OperationListResponse
|
||||
type OperationListResponseIterator = original.OperationListResponseIterator
|
||||
type OperationListResponsePage = original.OperationListResponsePage
|
||||
type OperationLogSpecification = original.OperationLogSpecification
|
||||
type OperationMetricAvailability = original.OperationMetricAvailability
|
||||
type OperationMetricDimension = original.OperationMetricDimension
|
||||
type OperationMetricSpecification = original.OperationMetricSpecification
|
||||
type OperationProperties = original.OperationProperties
|
||||
type OperationServiceSpecification = original.OperationServiceSpecification
|
||||
@ -1168,11 +1189,8 @@ type PipelineListResponsePage = original.PipelineListResponsePage
|
||||
type PipelineReference = original.PipelineReference
|
||||
type PipelineResource = original.PipelineResource
|
||||
type PipelineRun = original.PipelineRun
|
||||
type PipelineRunFilterParameters = original.PipelineRunFilterParameters
|
||||
type PipelineRunInvokedBy = original.PipelineRunInvokedBy
|
||||
type PipelineRunQueryFilter = original.PipelineRunQueryFilter
|
||||
type PipelineRunQueryOrderBy = original.PipelineRunQueryOrderBy
|
||||
type PipelineRunQueryResponse = original.PipelineRunQueryResponse
|
||||
type PipelineRunsQueryResponse = original.PipelineRunsQueryResponse
|
||||
type PolybaseSettings = original.PolybaseSettings
|
||||
type PostgreSQLLinkedService = original.PostgreSQLLinkedService
|
||||
type PostgreSQLLinkedServiceTypeProperties = original.PostgreSQLLinkedServiceTypeProperties
|
||||
@ -1197,6 +1215,9 @@ type ResponsysLinkedServiceTypeProperties = original.ResponsysLinkedServiceTypeP
|
||||
type ResponsysObjectDataset = original.ResponsysObjectDataset
|
||||
type ResponsysSource = original.ResponsysSource
|
||||
type RetryPolicy = original.RetryPolicy
|
||||
type RunFilterParameters = original.RunFilterParameters
|
||||
type RunQueryFilter = original.RunQueryFilter
|
||||
type RunQueryOrderBy = original.RunQueryOrderBy
|
||||
type SalesforceLinkedService = original.SalesforceLinkedService
|
||||
type SalesforceLinkedServiceTypeProperties = original.SalesforceLinkedServiceTypeProperties
|
||||
type SalesforceMarketingCloudLinkedService = original.SalesforceMarketingCloudLinkedService
|
||||
@ -1280,9 +1301,7 @@ type TriggerListResponsePage = original.TriggerListResponsePage
|
||||
type TriggerPipelineReference = original.TriggerPipelineReference
|
||||
type TriggerResource = original.TriggerResource
|
||||
type TriggerRun = original.TriggerRun
|
||||
type TriggerRunListResponse = original.TriggerRunListResponse
|
||||
type TriggerRunListResponseIterator = original.TriggerRunListResponseIterator
|
||||
type TriggerRunListResponsePage = original.TriggerRunListResponsePage
|
||||
type TriggerRunsQueryResponse = original.TriggerRunsQueryResponse
|
||||
type TriggersStartFuture = original.TriggersStartFuture
|
||||
type TriggersStopFuture = original.TriggersStopFuture
|
||||
type TumblingWindowTrigger = original.TumblingWindowTrigger
|
||||
@ -1320,6 +1339,7 @@ type ZohoSource = original.ZohoSource
|
||||
type OperationsClient = original.OperationsClient
|
||||
type PipelineRunsClient = original.PipelineRunsClient
|
||||
type PipelinesClient = original.PipelinesClient
|
||||
type TriggerRunsClient = original.TriggerRunsClient
|
||||
type TriggersClient = original.TriggersClient
|
||||
|
||||
func NewActivityRunsClient(subscriptionID string) ActivityRunsClient {
|
||||
@ -1367,12 +1387,12 @@ func NewLinkedServicesClientWithBaseURI(baseURI string, subscriptionID string) L
|
||||
func PossibleAuthenticationTypeValues() []AuthenticationType {
|
||||
return original.PossibleAuthenticationTypeValues()
|
||||
}
|
||||
func PossibleAuthorizationTypeValues() []AuthorizationType {
|
||||
return original.PossibleAuthorizationTypeValues()
|
||||
}
|
||||
func PossibleAzureSearchIndexWriteBehaviorTypeValues() []AzureSearchIndexWriteBehaviorType {
|
||||
return original.PossibleAzureSearchIndexWriteBehaviorTypeValues()
|
||||
}
|
||||
func PossibleBlobEventTypesValues() []BlobEventTypes {
|
||||
return original.PossibleBlobEventTypesValues()
|
||||
}
|
||||
func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadConsistencyLevels {
|
||||
return original.PossibleCassandraSourceReadConsistencyLevelsValues()
|
||||
}
|
||||
@ -1466,18 +1486,6 @@ func PossibleParameterTypeValues() []ParameterType {
|
||||
func PossiblePhoenixAuthenticationTypeValues() []PhoenixAuthenticationType {
|
||||
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 {
|
||||
return original.PossiblePolybaseSettingsRejectTypeValues()
|
||||
}
|
||||
@ -1487,6 +1495,18 @@ func PossiblePrestoAuthenticationTypeValues() []PrestoAuthenticationType {
|
||||
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
|
||||
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 {
|
||||
return original.PossibleSalesforceSinkWriteBehaviorValues()
|
||||
}
|
||||
@ -1562,6 +1582,9 @@ func PossibleTypeBasicDatasetCompressionValues() []TypeBasicDatasetCompression {
|
||||
func PossibleTypeBasicDatasetStorageFormatValues() []TypeBasicDatasetStorageFormat {
|
||||
return original.PossibleTypeBasicDatasetStorageFormatValues()
|
||||
}
|
||||
func PossibleTypeBasicFactoryRepoConfigurationValues() []TypeBasicFactoryRepoConfiguration {
|
||||
return original.PossibleTypeBasicFactoryRepoConfigurationValues()
|
||||
}
|
||||
func PossibleTypeBasicIntegrationRuntimeValues() []TypeBasicIntegrationRuntime {
|
||||
return original.PossibleTypeBasicIntegrationRuntimeValues()
|
||||
}
|
||||
@ -1595,6 +1618,12 @@ func NewPipelinesClient(subscriptionID string) PipelinesClient {
|
||||
func NewPipelinesClientWithBaseURI(baseURI string, subscriptionID string) PipelinesClient {
|
||||
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 {
|
||||
return original.NewTriggersClient(subscriptionID)
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
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 (
|
||||
DefaultBaseURI = original.DefaultBaseURI
|
||||
@ -37,6 +37,7 @@ const (
|
||||
type CertificatePermissions = original.CertificatePermissions
|
||||
|
||||
const (
|
||||
Backup CertificatePermissions = original.Backup
|
||||
Create CertificatePermissions = original.Create
|
||||
Delete CertificatePermissions = original.Delete
|
||||
Deleteissuers CertificatePermissions = original.Deleteissuers
|
||||
@ -49,6 +50,7 @@ const (
|
||||
Manageissuers CertificatePermissions = original.Manageissuers
|
||||
Purge CertificatePermissions = original.Purge
|
||||
Recover CertificatePermissions = original.Recover
|
||||
Restore CertificatePermissions = original.Restore
|
||||
Setissuers CertificatePermissions = original.Setissuers
|
||||
Update CertificatePermissions = original.Update
|
||||
)
|
||||
@ -81,6 +83,20 @@ const (
|
||||
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
|
||||
|
||||
const (
|
||||
@ -134,7 +150,9 @@ type DeletedVaultListResult = original.DeletedVaultListResult
|
||||
type DeletedVaultListResultIterator = original.DeletedVaultListResultIterator
|
||||
type DeletedVaultListResultPage = original.DeletedVaultListResultPage
|
||||
type DeletedVaultProperties = original.DeletedVaultProperties
|
||||
type IPRule = original.IPRule
|
||||
type LogSpecification = original.LogSpecification
|
||||
type NetworkRuleSet = original.NetworkRuleSet
|
||||
type Operation = original.Operation
|
||||
type OperationDisplay = original.OperationDisplay
|
||||
type OperationListResult = original.OperationListResult
|
||||
@ -159,7 +177,9 @@ type VaultListResultPage = original.VaultListResultPage
|
||||
type VaultPatchParameters = original.VaultPatchParameters
|
||||
type VaultPatchProperties = original.VaultPatchProperties
|
||||
type VaultProperties = original.VaultProperties
|
||||
type VaultsCreateOrUpdateFuture = original.VaultsCreateOrUpdateFuture
|
||||
type VaultsPurgeDeletedFuture = original.VaultsPurgeDeletedFuture
|
||||
type VirtualNetworkRule = original.VirtualNetworkRule
|
||||
type OperationsClient = original.OperationsClient
|
||||
type VaultsClient = original.VaultsClient
|
||||
|
||||
@ -181,6 +201,12 @@ func PossibleCreateModeValues() []CreateMode {
|
||||
func PossibleKeyPermissionsValues() []KeyPermissions {
|
||||
return original.PossibleKeyPermissionsValues()
|
||||
}
|
||||
func PossibleNetworkRuleActionValues() []NetworkRuleAction {
|
||||
return original.PossibleNetworkRuleActionValues()
|
||||
}
|
||||
func PossibleNetworkRuleBypassOptionsValues() []NetworkRuleBypassOptions {
|
||||
return original.PossibleNetworkRuleBypassOptionsValues()
|
||||
}
|
||||
func PossibleReasonValues() []Reason {
|
||||
return original.PossibleReasonValues()
|
||||
}
|
||||
|
@ -522,8 +522,9 @@ const (
|
||||
type ProbeProtocol = original.ProbeProtocol
|
||||
|
||||
const (
|
||||
ProbeProtocolHTTP ProbeProtocol = original.ProbeProtocolHTTP
|
||||
ProbeProtocolTCP ProbeProtocol = original.ProbeProtocolTCP
|
||||
ProbeProtocolHTTP ProbeProtocol = original.ProbeProtocolHTTP
|
||||
ProbeProtocolHTTPS ProbeProtocol = original.ProbeProtocolHTTPS
|
||||
ProbeProtocolTCP ProbeProtocol = original.ProbeProtocolTCP
|
||||
)
|
||||
|
||||
type ProcessorArchitecture = original.ProcessorArchitecture
|
||||
|
@ -58,6 +58,8 @@ type BaiduCredentialProperties = original.BaiduCredentialProperties
|
||||
type CheckAvailabilityParameters = original.CheckAvailabilityParameters
|
||||
type CheckAvailabilityResult = original.CheckAvailabilityResult
|
||||
type CreateOrUpdateParameters = original.CreateOrUpdateParameters
|
||||
type DebugSendResponse = original.DebugSendResponse
|
||||
type DebugSendResult = original.DebugSendResult
|
||||
type ErrorResponse = original.ErrorResponse
|
||||
type GcmCredential = original.GcmCredential
|
||||
type GcmCredentialProperties = original.GcmCredentialProperties
|
||||
@ -79,6 +81,7 @@ type OperationDisplay = original.OperationDisplay
|
||||
type OperationListResult = original.OperationListResult
|
||||
type OperationListResultIterator = original.OperationListResultIterator
|
||||
type OperationListResultPage = original.OperationListResultPage
|
||||
type PatchParameters = original.PatchParameters
|
||||
type PnsCredentialsProperties = original.PnsCredentialsProperties
|
||||
type PnsCredentialsResource = original.PnsCredentialsResource
|
||||
type PolicykeyResource = original.PolicykeyResource
|
||||
|
@ -19,11 +19,10 @@
|
||||
|
||||
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 APIDiagnosticClient = original.APIDiagnosticClient
|
||||
type APIDiagnosticLoggerClient = original.APIDiagnosticLoggerClient
|
||||
type APIExportClient = original.APIExportClient
|
||||
type APIIssueClient = original.APIIssueClient
|
||||
type APIIssueAttachmentClient = original.APIIssueAttachmentClient
|
||||
@ -47,12 +46,17 @@ const (
|
||||
type BaseClient = original.BaseClient
|
||||
type DelegationSettingsClient = original.DelegationSettingsClient
|
||||
type DiagnosticClient = original.DiagnosticClient
|
||||
type DiagnosticLoggerClient = original.DiagnosticLoggerClient
|
||||
type EmailTemplateClient = original.EmailTemplateClient
|
||||
type GroupClient = original.GroupClient
|
||||
type GroupUserClient = original.GroupUserClient
|
||||
type IdentityProviderClient = original.IdentityProviderClient
|
||||
type LoggerClient = original.LoggerClient
|
||||
type AlwaysLog = original.AlwaysLog
|
||||
|
||||
const (
|
||||
AllErrors AlwaysLog = original.AllErrors
|
||||
)
|
||||
|
||||
type APIType = original.APIType
|
||||
|
||||
const (
|
||||
@ -241,6 +245,12 @@ const (
|
||||
ProtocolHTTPS Protocol = original.ProtocolHTTPS
|
||||
)
|
||||
|
||||
type SamplingType = original.SamplingType
|
||||
|
||||
const (
|
||||
Fixed SamplingType = original.Fixed
|
||||
)
|
||||
|
||||
type SkuType = original.SkuType
|
||||
|
||||
const (
|
||||
@ -398,6 +408,7 @@ type BackendServiceFabricClusterProperties = original.BackendServiceFabricCluste
|
||||
type BackendTLSProperties = original.BackendTLSProperties
|
||||
type BackendUpdateParameterProperties = original.BackendUpdateParameterProperties
|
||||
type BackendUpdateParameters = original.BackendUpdateParameters
|
||||
type BodyDiagnosticSettings = original.BodyDiagnosticSettings
|
||||
type CertificateCollection = original.CertificateCollection
|
||||
type CertificateCollectionIterator = original.CertificateCollectionIterator
|
||||
type CertificateCollectionPage = original.CertificateCollectionPage
|
||||
@ -437,6 +448,7 @@ type GroupUpdateParameters = original.GroupUpdateParameters
|
||||
type GroupUpdateParametersProperties = original.GroupUpdateParametersProperties
|
||||
type HostnameConfiguration = original.HostnameConfiguration
|
||||
type HostnameConfigurationOld = original.HostnameConfigurationOld
|
||||
type HTTPMessageDiagnostic = original.HTTPMessageDiagnostic
|
||||
type IdentityProviderBaseParameters = original.IdentityProviderBaseParameters
|
||||
type IdentityProviderContract = original.IdentityProviderContract
|
||||
type IdentityProviderContractProperties = original.IdentityProviderContractProperties
|
||||
@ -500,6 +512,7 @@ type OperationTagResourceContractProperties = original.OperationTagResourceContr
|
||||
type OperationUpdateContract = original.OperationUpdateContract
|
||||
type OperationUpdateContractProperties = original.OperationUpdateContractProperties
|
||||
type ParameterContract = original.ParameterContract
|
||||
type PipelineDiagnosticSettings = original.PipelineDiagnosticSettings
|
||||
type PolicyCollection = original.PolicyCollection
|
||||
type PolicyContract = original.PolicyContract
|
||||
type PolicyContractProperties = original.PolicyContractProperties
|
||||
@ -554,6 +567,7 @@ type RequestReportCollection = original.RequestReportCollection
|
||||
type RequestReportRecordContract = original.RequestReportRecordContract
|
||||
type Resource = original.Resource
|
||||
type ResponseContract = original.ResponseContract
|
||||
type SamplingSettings = original.SamplingSettings
|
||||
type SaveConfigurationParameter = original.SaveConfigurationParameter
|
||||
type SchemaCollection = original.SchemaCollection
|
||||
type SchemaCollectionIterator = original.SchemaCollectionIterator
|
||||
@ -683,12 +697,6 @@ func NewAPIDiagnosticClient(subscriptionID string) APIDiagnosticClient {
|
||||
func NewAPIDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticClient {
|
||||
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 {
|
||||
return original.NewAPIExportClient(subscriptionID)
|
||||
}
|
||||
@ -797,12 +805,6 @@ func NewDiagnosticClient(subscriptionID string) DiagnosticClient {
|
||||
func NewDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticClient {
|
||||
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 {
|
||||
return original.NewEmailTemplateClient(subscriptionID)
|
||||
}
|
||||
@ -833,6 +835,9 @@ func NewLoggerClient(subscriptionID string) LoggerClient {
|
||||
func NewLoggerClientWithBaseURI(baseURI string, subscriptionID string) LoggerClient {
|
||||
return original.NewLoggerClientWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func PossibleAlwaysLogValues() []AlwaysLog {
|
||||
return original.PossibleAlwaysLogValues()
|
||||
}
|
||||
func PossibleAPITypeValues() []APIType {
|
||||
return original.PossibleAPITypeValues()
|
||||
}
|
||||
@ -899,6 +904,9 @@ func PossibleProductStateValues() []ProductState {
|
||||
func PossibleProtocolValues() []Protocol {
|
||||
return original.PossibleProtocolValues()
|
||||
}
|
||||
func PossibleSamplingTypeValues() []SamplingType {
|
||||
return original.PossibleSamplingTypeValues()
|
||||
}
|
||||
func PossibleSkuTypeValues() []SkuType {
|
||||
return original.PossibleSkuTypeValues()
|
||||
}
|
||||
|
915
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/automation/mgmt/automation/models.go
generated
vendored
Normal file
915
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/automation/mgmt/automation/models.go
generated
vendored
Normal 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)
|
||||
}
|
111
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/devspaces/mgmt/devspaces/models.go
generated
vendored
Normal file
111
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/devspaces/mgmt/devspaces/models.go
generated
vendored
Normal 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()
|
||||
}
|
@ -28,6 +28,27 @@ const (
|
||||
type BaseClient = original.BaseClient
|
||||
type ClustersClient = original.ClustersClient
|
||||
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 ClusterListResult = original.ClusterListResult
|
||||
type ClusterListResultIterator = original.ClusterListResultIterator
|
||||
@ -36,14 +57,33 @@ type ClusterProperties = original.ClusterProperties
|
||||
type ClusterQuotaConfigurationProperties = original.ClusterQuotaConfigurationProperties
|
||||
type ClusterSku = original.ClusterSku
|
||||
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 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 OperationDisplay = original.OperationDisplay
|
||||
type OperationListResult = original.OperationListResult
|
||||
type OperationListResultIterator = original.OperationListResultIterator
|
||||
type OperationListResultPage = original.OperationListResultPage
|
||||
type Resource = original.Resource
|
||||
type Sku = original.Sku
|
||||
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
|
||||
|
||||
func New(subscriptionID string) BaseClient {
|
||||
@ -64,6 +104,21 @@ func NewConfigurationClient(subscriptionID string) ConfigurationClient {
|
||||
func NewConfigurationClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationClient {
|
||||
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 {
|
||||
return original.NewOperationsClient(subscriptionID)
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
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
|
||||
|
||||
@ -30,8 +30,8 @@ const (
|
||||
type BaseClient = original.BaseClient
|
||||
type ClustersClient = original.ClustersClient
|
||||
type ConfigurationsClient = original.ConfigurationsClient
|
||||
type ExtensionClient = original.ExtensionClient
|
||||
type LocationClient = original.LocationClient
|
||||
type ExtensionsClient = original.ExtensionsClient
|
||||
type LocationsClient = original.LocationsClient
|
||||
type AsyncOperationState = original.AsyncOperationState
|
||||
|
||||
const (
|
||||
@ -56,13 +56,6 @@ const (
|
||||
ActiveDirectory DirectoryType = original.ActiveDirectory
|
||||
)
|
||||
|
||||
type EnabledCredential = original.EnabledCredential
|
||||
|
||||
const (
|
||||
False EnabledCredential = original.False
|
||||
True EnabledCredential = original.True
|
||||
)
|
||||
|
||||
type OSType = original.OSType
|
||||
|
||||
const (
|
||||
@ -80,12 +73,12 @@ const (
|
||||
type Application = original.Application
|
||||
type ApplicationGetEndpoint = original.ApplicationGetEndpoint
|
||||
type ApplicationGetHTTPSEndpoint = original.ApplicationGetHTTPSEndpoint
|
||||
type ApplicationGetProperties = original.ApplicationGetProperties
|
||||
type ApplicationListResult = original.ApplicationListResult
|
||||
type ApplicationListResultIterator = original.ApplicationListResultIterator
|
||||
type ApplicationListResultPage = original.ApplicationListResultPage
|
||||
type ApplicationProperties = original.ApplicationProperties
|
||||
type ApplicationsCreateFuture = original.ApplicationsCreateFuture
|
||||
type ApplicationsDeleteFuture = original.ApplicationsDeleteFuture
|
||||
type CapabilitiesResult = original.CapabilitiesResult
|
||||
type Cluster = original.Cluster
|
||||
type ClusterCreateParametersExtended = original.ClusterCreateParametersExtended
|
||||
type ClusterCreateProperties = original.ClusterCreateProperties
|
||||
@ -108,14 +101,17 @@ type ComputeProfile = original.ComputeProfile
|
||||
type ConfigurationsUpdateHTTPSettingsFuture = original.ConfigurationsUpdateHTTPSettingsFuture
|
||||
type ConnectivityEndpoint = original.ConnectivityEndpoint
|
||||
type DataDisksGroups = original.DataDisksGroups
|
||||
type ErrorResponse = original.ErrorResponse
|
||||
type Errors = original.Errors
|
||||
type ExecuteScriptActionParameters = original.ExecuteScriptActionParameters
|
||||
type Extension = original.Extension
|
||||
type ExtensionDisableMonitoringFuture = original.ExtensionDisableMonitoringFuture
|
||||
type ExtensionEnableMonitoringFuture = original.ExtensionEnableMonitoringFuture
|
||||
type ExtensionsCreateFuture = original.ExtensionsCreateFuture
|
||||
type ExtensionsDeleteFuture = original.ExtensionsDeleteFuture
|
||||
type ExtensionsDisableMonitoringFuture = original.ExtensionsDisableMonitoringFuture
|
||||
type ExtensionsEnableMonitoringFuture = original.ExtensionsEnableMonitoringFuture
|
||||
type HardwareProfile = original.HardwareProfile
|
||||
type HTTPConnectivitySettings = original.HTTPConnectivitySettings
|
||||
type LinuxOperatingSystemProfile = original.LinuxOperatingSystemProfile
|
||||
type LocalizedName = original.LocalizedName
|
||||
type Operation = original.Operation
|
||||
type OperationDisplay = original.OperationDisplay
|
||||
type OperationListResult = original.OperationListResult
|
||||
@ -124,10 +120,7 @@ type OperationListResultPage = original.OperationListResultPage
|
||||
type OperationResource = original.OperationResource
|
||||
type OsProfile = original.OsProfile
|
||||
type ProxyResource = original.ProxyResource
|
||||
type QuotaCapability = original.QuotaCapability
|
||||
type QuotaInfo = original.QuotaInfo
|
||||
type RegionalQuotaCapability = original.RegionalQuotaCapability
|
||||
type RegionsCapability = original.RegionsCapability
|
||||
type Resource = original.Resource
|
||||
type Role = original.Role
|
||||
type RuntimeScriptAction = original.RuntimeScriptAction
|
||||
@ -148,11 +141,9 @@ type SSHPublicKey = original.SSHPublicKey
|
||||
type StorageAccount = original.StorageAccount
|
||||
type StorageProfile = original.StorageProfile
|
||||
type TrackedResource = original.TrackedResource
|
||||
type VersionsCapability = original.VersionsCapability
|
||||
type VersionSpec = original.VersionSpec
|
||||
type Usage = original.Usage
|
||||
type UsagesListResult = original.UsagesListResult
|
||||
type VirtualNetworkProfile = original.VirtualNetworkProfile
|
||||
type VMSizeCompatibilityFilter = original.VMSizeCompatibilityFilter
|
||||
type VMSizesCapability = original.VMSizesCapability
|
||||
type OperationsClient = original.OperationsClient
|
||||
type ScriptActionsClient = original.ScriptActionsClient
|
||||
type ScriptExecutionHistoryClient = original.ScriptExecutionHistoryClient
|
||||
@ -181,17 +172,17 @@ func NewConfigurationsClient(subscriptionID string) ConfigurationsClient {
|
||||
func NewConfigurationsClientWithBaseURI(baseURI string, subscriptionID string) ConfigurationsClient {
|
||||
return original.NewConfigurationsClientWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func NewExtensionClient(subscriptionID string) ExtensionClient {
|
||||
return original.NewExtensionClient(subscriptionID)
|
||||
func NewExtensionsClient(subscriptionID string) ExtensionsClient {
|
||||
return original.NewExtensionsClient(subscriptionID)
|
||||
}
|
||||
func NewExtensionClientWithBaseURI(baseURI string, subscriptionID string) ExtensionClient {
|
||||
return original.NewExtensionClientWithBaseURI(baseURI, subscriptionID)
|
||||
func NewExtensionsClientWithBaseURI(baseURI string, subscriptionID string) ExtensionsClient {
|
||||
return original.NewExtensionsClientWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func NewLocationClient(subscriptionID string) LocationClient {
|
||||
return original.NewLocationClient(subscriptionID)
|
||||
func NewLocationsClient(subscriptionID string) LocationsClient {
|
||||
return original.NewLocationsClient(subscriptionID)
|
||||
}
|
||||
func NewLocationClientWithBaseURI(baseURI string, subscriptionID string) LocationClient {
|
||||
return original.NewLocationClientWithBaseURI(baseURI, subscriptionID)
|
||||
func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string) LocationsClient {
|
||||
return original.NewLocationsClientWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func PossibleAsyncOperationStateValues() []AsyncOperationState {
|
||||
return original.PossibleAsyncOperationStateValues()
|
||||
@ -202,9 +193,6 @@ func PossibleClusterProvisioningStateValues() []ClusterProvisioningState {
|
||||
func PossibleDirectoryTypeValues() []DirectoryType {
|
||||
return original.PossibleDirectoryTypeValues()
|
||||
}
|
||||
func PossibleEnabledCredentialValues() []EnabledCredential {
|
||||
return original.PossibleEnabledCredentialValues()
|
||||
}
|
||||
func PossibleOSTypeValues() []OSType {
|
||||
return original.PossibleOSTypeValues()
|
||||
}
|
||||
|
@ -19,10 +19,7 @@
|
||||
|
||||
package iotcentral
|
||||
|
||||
import (
|
||||
original "github.com/Azure/azure-sdk-for-go/services/preview/iotcentral/mgmt/2017-07-01-privatepreview/iotcentral"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
)
|
||||
import original "github.com/Azure/azure-sdk-for-go/services/preview/iotcentral/mgmt/2017-07-01-privatepreview/iotcentral"
|
||||
|
||||
type AppsClient = original.AppsClient
|
||||
|
||||
@ -66,16 +63,16 @@ type OperationListResultPage = original.OperationListResultPage
|
||||
type Resource = original.Resource
|
||||
type OperationsClient = original.OperationsClient
|
||||
|
||||
func NewAppsClient(subscriptionID uuid.UUID) AppsClient {
|
||||
func NewAppsClient(subscriptionID string) AppsClient {
|
||||
return original.NewAppsClient(subscriptionID)
|
||||
}
|
||||
func NewAppsClientWithBaseURI(baseURI string, subscriptionID uuid.UUID) AppsClient {
|
||||
func NewAppsClientWithBaseURI(baseURI string, subscriptionID string) AppsClient {
|
||||
return original.NewAppsClientWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func New(subscriptionID uuid.UUID) BaseClient {
|
||||
func New(subscriptionID string) BaseClient {
|
||||
return original.New(subscriptionID)
|
||||
}
|
||||
func NewWithBaseURI(baseURI string, subscriptionID uuid.UUID) BaseClient {
|
||||
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
|
||||
return original.NewWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason {
|
||||
@ -84,10 +81,10 @@ func PossibleAppNameUnavailabilityReasonValues() []AppNameUnavailabilityReason {
|
||||
func PossibleAppSkuValues() []AppSku {
|
||||
return original.PossibleAppSkuValues()
|
||||
}
|
||||
func NewOperationsClient(subscriptionID uuid.UUID) OperationsClient {
|
||||
func NewOperationsClient(subscriptionID string) OperationsClient {
|
||||
return original.NewOperationsClient(subscriptionID)
|
||||
}
|
||||
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID uuid.UUID) OperationsClient {
|
||||
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
|
||||
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
|
||||
}
|
||||
func UserAgent() string {
|
||||
|
@ -41,10 +41,10 @@ const (
|
||||
type JSONWebKeyCurveName = original.JSONWebKeyCurveName
|
||||
|
||||
const (
|
||||
P256 JSONWebKeyCurveName = original.P256
|
||||
P384 JSONWebKeyCurveName = original.P384
|
||||
P521 JSONWebKeyCurveName = original.P521
|
||||
SECP256K1 JSONWebKeyCurveName = original.SECP256K1
|
||||
P256 JSONWebKeyCurveName = original.P256
|
||||
P256K JSONWebKeyCurveName = original.P256K
|
||||
P384 JSONWebKeyCurveName = original.P384
|
||||
P521 JSONWebKeyCurveName = original.P521
|
||||
)
|
||||
|
||||
type JSONWebKeyEncryptionAlgorithm = original.JSONWebKeyEncryptionAlgorithm
|
||||
@ -69,17 +69,17 @@ const (
|
||||
type JSONWebKeySignatureAlgorithm = original.JSONWebKeySignatureAlgorithm
|
||||
|
||||
const (
|
||||
ECDSA256 JSONWebKeySignatureAlgorithm = original.ECDSA256
|
||||
ES256 JSONWebKeySignatureAlgorithm = original.ES256
|
||||
ES384 JSONWebKeySignatureAlgorithm = original.ES384
|
||||
ES512 JSONWebKeySignatureAlgorithm = original.ES512
|
||||
PS256 JSONWebKeySignatureAlgorithm = original.PS256
|
||||
PS384 JSONWebKeySignatureAlgorithm = original.PS384
|
||||
PS512 JSONWebKeySignatureAlgorithm = original.PS512
|
||||
RS256 JSONWebKeySignatureAlgorithm = original.RS256
|
||||
RS384 JSONWebKeySignatureAlgorithm = original.RS384
|
||||
RS512 JSONWebKeySignatureAlgorithm = original.RS512
|
||||
RSNULL JSONWebKeySignatureAlgorithm = original.RSNULL
|
||||
ES256 JSONWebKeySignatureAlgorithm = original.ES256
|
||||
ES256K JSONWebKeySignatureAlgorithm = original.ES256K
|
||||
ES384 JSONWebKeySignatureAlgorithm = original.ES384
|
||||
ES512 JSONWebKeySignatureAlgorithm = original.ES512
|
||||
PS256 JSONWebKeySignatureAlgorithm = original.PS256
|
||||
PS384 JSONWebKeySignatureAlgorithm = original.PS384
|
||||
PS512 JSONWebKeySignatureAlgorithm = original.PS512
|
||||
RS256 JSONWebKeySignatureAlgorithm = original.RS256
|
||||
RS384 JSONWebKeySignatureAlgorithm = original.RS384
|
||||
RS512 JSONWebKeySignatureAlgorithm = original.RS512
|
||||
RSNULL JSONWebKeySignatureAlgorithm = original.RSNULL
|
||||
)
|
||||
|
||||
type JSONWebKeyType = original.JSONWebKeyType
|
||||
@ -116,6 +116,7 @@ const (
|
||||
type Action = original.Action
|
||||
type AdministratorDetails = original.AdministratorDetails
|
||||
type Attributes = original.Attributes
|
||||
type BackupCertificateResult = original.BackupCertificateResult
|
||||
type BackupKeyResult = original.BackupKeyResult
|
||||
type BackupSecretResult = original.BackupSecretResult
|
||||
type BackupStorageResult = original.BackupStorageResult
|
||||
@ -137,6 +138,7 @@ type CertificateMergeParameters = original.CertificateMergeParameters
|
||||
type CertificateOperation = original.CertificateOperation
|
||||
type CertificateOperationUpdateParameter = original.CertificateOperationUpdateParameter
|
||||
type CertificatePolicy = original.CertificatePolicy
|
||||
type CertificateRestoreParameters = original.CertificateRestoreParameters
|
||||
type CertificateUpdateParameters = original.CertificateUpdateParameters
|
||||
type Contact = original.Contact
|
||||
type Contacts = original.Contacts
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
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
|
||||
|
||||
@ -607,7 +607,6 @@ type StreamingLocatorCollectionIterator = original.StreamingLocatorCollectionIte
|
||||
type StreamingLocatorCollectionPage = original.StreamingLocatorCollectionPage
|
||||
type StreamingLocatorContentKey = original.StreamingLocatorContentKey
|
||||
type StreamingLocatorProperties = original.StreamingLocatorProperties
|
||||
type StreamingLocatorUserDefinedContentKey = original.StreamingLocatorUserDefinedContentKey
|
||||
type StreamingPath = original.StreamingPath
|
||||
type StreamingPolicy = original.StreamingPolicy
|
||||
type StreamingPolicyCollection = original.StreamingPolicyCollection
|
||||
|
@ -331,13 +331,16 @@ type ItsmReceiver = original.ItsmReceiver
|
||||
type LocalizableString = original.LocalizableString
|
||||
type LocationThresholdRuleCondition = original.LocationThresholdRuleCondition
|
||||
type LogicAppReceiver = original.LogicAppReceiver
|
||||
type LogMetricTrigger = original.LogMetricTrigger
|
||||
type LogProfileCollection = original.LogProfileCollection
|
||||
type LogProfileProperties = original.LogProfileProperties
|
||||
type LogProfileResource = original.LogProfileResource
|
||||
type LogProfileResourcePatch = original.LogProfileResourcePatch
|
||||
type LogSearchRule = original.LogSearchRule
|
||||
type LogSearchRulePatch = original.LogSearchRulePatch
|
||||
type LogSearchRuleResource = original.LogSearchRuleResource
|
||||
type LogSearchRuleResourceCollection = original.LogSearchRuleResourceCollection
|
||||
type LogSearchRuleResourcePatch = original.LogSearchRuleResourcePatch
|
||||
type LogSettings = original.LogSettings
|
||||
type ManagementEventAggregationCondition = original.ManagementEventAggregationCondition
|
||||
type ManagementEventRuleCondition = original.ManagementEventRuleCondition
|
||||
|
@ -44,6 +44,8 @@ type Solution = original.Solution
|
||||
type SolutionPlan = original.SolutionPlan
|
||||
type SolutionProperties = original.SolutionProperties
|
||||
type SolutionPropertiesList = original.SolutionPropertiesList
|
||||
type SolutionsCreateOrUpdateFuture = original.SolutionsCreateOrUpdateFuture
|
||||
type SolutionsDeleteFuture = original.SolutionsDeleteFuture
|
||||
type OperationsClient = original.OperationsClient
|
||||
type SolutionsClient = original.SolutionsClient
|
||||
|
||||
|
@ -50,9 +50,10 @@ const (
|
||||
type SkuTier = original.SkuTier
|
||||
|
||||
const (
|
||||
Basic SkuTier = original.Basic
|
||||
Free SkuTier = original.Free
|
||||
Premium SkuTier = original.Premium
|
||||
Basic SkuTier = original.Basic
|
||||
Free SkuTier = original.Free
|
||||
Premium SkuTier = original.Premium
|
||||
Standard SkuTier = original.Standard
|
||||
)
|
||||
|
||||
type CreateOrUpdateFuture = original.CreateOrUpdateFuture
|
||||
|
21
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/sql/mgmt/sql/models.go
generated
vendored
21
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/preview/sql/mgmt/sql/models.go
generated
vendored
@ -35,6 +35,7 @@ type DatabaseVulnerabilityAssessmentScansClient = original.DatabaseVulnerability
|
||||
type ElasticPoolOperationsClient = original.ElasticPoolOperationsClient
|
||||
type ElasticPoolsClient = original.ElasticPoolsClient
|
||||
type InstanceFailoverGroupsClient = original.InstanceFailoverGroupsClient
|
||||
type ManagedInstanceTdeCertificatesClient = original.ManagedInstanceTdeCertificatesClient
|
||||
type CapabilityGroup = original.CapabilityGroup
|
||||
|
||||
const (
|
||||
@ -211,6 +212,9 @@ const (
|
||||
type BackupShortTermRetentionPoliciesCreateOrUpdateFuture = original.BackupShortTermRetentionPoliciesCreateOrUpdateFuture
|
||||
type BackupShortTermRetentionPoliciesUpdateFuture = original.BackupShortTermRetentionPoliciesUpdateFuture
|
||||
type BackupShortTermRetentionPolicy = original.BackupShortTermRetentionPolicy
|
||||
type BackupShortTermRetentionPolicyListResult = original.BackupShortTermRetentionPolicyListResult
|
||||
type BackupShortTermRetentionPolicyListResultIterator = original.BackupShortTermRetentionPolicyListResultIterator
|
||||
type BackupShortTermRetentionPolicyListResultPage = original.BackupShortTermRetentionPolicyListResultPage
|
||||
type BackupShortTermRetentionPolicyProperties = original.BackupShortTermRetentionPolicyProperties
|
||||
type Database = original.Database
|
||||
type DatabaseListResult = original.DatabaseListResult
|
||||
@ -272,6 +276,7 @@ type LogSizeCapability = original.LogSizeCapability
|
||||
type ManagedInstanceEditionCapability = original.ManagedInstanceEditionCapability
|
||||
type ManagedInstanceFamilyCapability = original.ManagedInstanceFamilyCapability
|
||||
type ManagedInstancePairInfo = original.ManagedInstancePairInfo
|
||||
type ManagedInstanceTdeCertificatesCreateFuture = original.ManagedInstanceTdeCertificatesCreateFuture
|
||||
type ManagedInstanceVcoresCapability = original.ManagedInstanceVcoresCapability
|
||||
type ManagedInstanceVersionCapability = original.ManagedInstanceVersionCapability
|
||||
type MaxSizeCapability = original.MaxSizeCapability
|
||||
@ -284,6 +289,9 @@ type ResourceMoveDefinition = original.ResourceMoveDefinition
|
||||
type ServerVersionCapability = original.ServerVersionCapability
|
||||
type ServiceObjectiveCapability = original.ServiceObjectiveCapability
|
||||
type Sku = original.Sku
|
||||
type TdeCertificate = original.TdeCertificate
|
||||
type TdeCertificateProperties = original.TdeCertificateProperties
|
||||
type TdeCertificatesCreateFuture = original.TdeCertificatesCreateFuture
|
||||
type TrackedResource = original.TrackedResource
|
||||
type VulnerabilityAssessmentRecurringScansProperties = original.VulnerabilityAssessmentRecurringScansProperties
|
||||
type VulnerabilityAssessmentScanError = original.VulnerabilityAssessmentScanError
|
||||
@ -292,6 +300,7 @@ type VulnerabilityAssessmentScanRecordListResult = original.VulnerabilityAssessm
|
||||
type VulnerabilityAssessmentScanRecordListResultIterator = original.VulnerabilityAssessmentScanRecordListResultIterator
|
||||
type VulnerabilityAssessmentScanRecordListResultPage = original.VulnerabilityAssessmentScanRecordListResultPage
|
||||
type VulnerabilityAssessmentScanRecordProperties = original.VulnerabilityAssessmentScanRecordProperties
|
||||
type TdeCertificatesClient = original.TdeCertificatesClient
|
||||
|
||||
func NewBackupShortTermRetentionPoliciesClient(subscriptionID string) BackupShortTermRetentionPoliciesClient {
|
||||
return original.NewBackupShortTermRetentionPoliciesClient(subscriptionID)
|
||||
@ -347,6 +356,12 @@ func NewInstanceFailoverGroupsClient(subscriptionID string) InstanceFailoverGrou
|
||||
func NewInstanceFailoverGroupsClientWithBaseURI(baseURI string, subscriptionID string) InstanceFailoverGroupsClient {
|
||||
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 {
|
||||
return original.PossibleCapabilityGroupValues()
|
||||
}
|
||||
@ -404,6 +419,12 @@ func PossibleVulnerabilityAssessmentScanStateValues() []VulnerabilityAssessmentS
|
||||
func PossibleVulnerabilityAssessmentScanTriggerTypeValues() []VulnerabilityAssessmentScanTriggerType {
|
||||
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 {
|
||||
return original.UserAgent() + " profiles/preview"
|
||||
}
|
||||
|
@ -52,17 +52,22 @@ const (
|
||||
ContainerTypeAzureSQLContainer ContainerType = original.ContainerTypeAzureSQLContainer
|
||||
ContainerTypeCluster ContainerType = original.ContainerTypeCluster
|
||||
ContainerTypeDPMContainer ContainerType = original.ContainerTypeDPMContainer
|
||||
ContainerTypeExchangeDAG ContainerType = original.ContainerTypeExchangeDAG
|
||||
ContainerTypeGenericContainer ContainerType = original.ContainerTypeGenericContainer
|
||||
ContainerTypeHyperVCluster ContainerType = original.ContainerTypeHyperVCluster
|
||||
ContainerTypeIaasVMContainer ContainerType = original.ContainerTypeIaasVMContainer
|
||||
ContainerTypeIaasVMServiceContainer ContainerType = original.ContainerTypeIaasVMServiceContainer
|
||||
ContainerTypeInvalid ContainerType = original.ContainerTypeInvalid
|
||||
ContainerTypeMABContainer ContainerType = original.ContainerTypeMABContainer
|
||||
ContainerTypeSharepointFarm ContainerType = original.ContainerTypeSharepointFarm
|
||||
ContainerTypeSQLAGWorkLoadContainer ContainerType = original.ContainerTypeSQLAGWorkLoadContainer
|
||||
ContainerTypeSQLCluster ContainerType = original.ContainerTypeSQLCluster
|
||||
ContainerTypeStorageContainer ContainerType = original.ContainerTypeStorageContainer
|
||||
ContainerTypeUnknown ContainerType = original.ContainerTypeUnknown
|
||||
ContainerTypeVCenter ContainerType = original.ContainerTypeVCenter
|
||||
ContainerTypeVMAppContainer ContainerType = original.ContainerTypeVMAppContainer
|
||||
ContainerTypeWindows ContainerType = original.ContainerTypeWindows
|
||||
ContainerTypeWindowsClient ContainerType = original.ContainerTypeWindowsClient
|
||||
)
|
||||
|
||||
type ContainerTypeBasicProtectionContainer = original.ContainerTypeBasicProtectionContainer
|
||||
@ -74,13 +79,13 @@ const (
|
||||
ContainerTypeDPMContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeDPMContainer1
|
||||
ContainerTypeGenericContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeGenericContainer1
|
||||
ContainerTypeIaaSVMContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeIaaSVMContainer
|
||||
ContainerTypeMABWindowsContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeMABWindowsContainer
|
||||
ContainerTypeMicrosoftClassicComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftClassicComputevirtualMachines
|
||||
ContainerTypeMicrosoftComputevirtualMachines ContainerTypeBasicProtectionContainer = original.ContainerTypeMicrosoftComputevirtualMachines
|
||||
ContainerTypeProtectionContainer ContainerTypeBasicProtectionContainer = original.ContainerTypeProtectionContainer
|
||||
ContainerTypeSQLAGWorkLoadContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeSQLAGWorkLoadContainer1
|
||||
ContainerTypeStorageContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeStorageContainer1
|
||||
ContainerTypeVMAppContainer1 ContainerTypeBasicProtectionContainer = original.ContainerTypeVMAppContainer1
|
||||
ContainerTypeWindows1 ContainerTypeBasicProtectionContainer = original.ContainerTypeWindows1
|
||||
)
|
||||
|
||||
type CopyOptions = original.CopyOptions
|
||||
@ -93,6 +98,14 @@ const (
|
||||
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
|
||||
|
||||
const (
|
||||
@ -103,6 +116,7 @@ const (
|
||||
DataSourceTypeFileFolder DataSourceType = original.DataSourceTypeFileFolder
|
||||
DataSourceTypeGenericDataSource DataSourceType = original.DataSourceTypeGenericDataSource
|
||||
DataSourceTypeInvalid DataSourceType = original.DataSourceTypeInvalid
|
||||
DataSourceTypeSAPHanaDatabase DataSourceType = original.DataSourceTypeSAPHanaDatabase
|
||||
DataSourceTypeSharepoint DataSourceType = original.DataSourceTypeSharepoint
|
||||
DataSourceTypeSQLDataBase DataSourceType = original.DataSourceTypeSQLDataBase
|
||||
DataSourceTypeSQLDB DataSourceType = original.DataSourceTypeSQLDB
|
||||
@ -149,6 +163,7 @@ const (
|
||||
type FeatureType = original.FeatureType
|
||||
|
||||
const (
|
||||
FeatureTypeAzureBackupGoals FeatureType = original.FeatureTypeAzureBackupGoals
|
||||
FeatureTypeAzureVMResourceBackup FeatureType = original.FeatureTypeAzureVMResourceBackup
|
||||
FeatureTypeFeatureSupportRequest FeatureType = original.FeatureTypeFeatureSupportRequest
|
||||
)
|
||||
@ -241,6 +256,7 @@ const (
|
||||
ItemTypeFileFolder ItemType = original.ItemTypeFileFolder
|
||||
ItemTypeGenericDataSource ItemType = original.ItemTypeGenericDataSource
|
||||
ItemTypeInvalid ItemType = original.ItemTypeInvalid
|
||||
ItemTypeSAPHanaDatabase ItemType = original.ItemTypeSAPHanaDatabase
|
||||
ItemTypeSharepoint ItemType = original.ItemTypeSharepoint
|
||||
ItemTypeSQLDataBase ItemType = original.ItemTypeSQLDataBase
|
||||
ItemTypeSQLDB ItemType = original.ItemTypeSQLDB
|
||||
@ -309,17 +325,22 @@ const (
|
||||
MabServerTypeAzureSQLContainer MabServerType = original.MabServerTypeAzureSQLContainer
|
||||
MabServerTypeCluster MabServerType = original.MabServerTypeCluster
|
||||
MabServerTypeDPMContainer MabServerType = original.MabServerTypeDPMContainer
|
||||
MabServerTypeExchangeDAG MabServerType = original.MabServerTypeExchangeDAG
|
||||
MabServerTypeGenericContainer MabServerType = original.MabServerTypeGenericContainer
|
||||
MabServerTypeHyperVCluster MabServerType = original.MabServerTypeHyperVCluster
|
||||
MabServerTypeIaasVMContainer MabServerType = original.MabServerTypeIaasVMContainer
|
||||
MabServerTypeIaasVMServiceContainer MabServerType = original.MabServerTypeIaasVMServiceContainer
|
||||
MabServerTypeInvalid MabServerType = original.MabServerTypeInvalid
|
||||
MabServerTypeMABContainer MabServerType = original.MabServerTypeMABContainer
|
||||
MabServerTypeSharepointFarm MabServerType = original.MabServerTypeSharepointFarm
|
||||
MabServerTypeSQLAGWorkLoadContainer MabServerType = original.MabServerTypeSQLAGWorkLoadContainer
|
||||
MabServerTypeSQLCluster MabServerType = original.MabServerTypeSQLCluster
|
||||
MabServerTypeStorageContainer MabServerType = original.MabServerTypeStorageContainer
|
||||
MabServerTypeUnknown MabServerType = original.MabServerTypeUnknown
|
||||
MabServerTypeVCenter MabServerType = original.MabServerTypeVCenter
|
||||
MabServerTypeVMAppContainer MabServerType = original.MabServerTypeVMAppContainer
|
||||
MabServerTypeWindows MabServerType = original.MabServerTypeWindows
|
||||
MabServerTypeWindowsClient MabServerType = original.MabServerTypeWindowsClient
|
||||
)
|
||||
|
||||
type ManagementType = original.ManagementType
|
||||
@ -402,24 +423,28 @@ const (
|
||||
type ObjectTypeBasicRecoveryPoint = original.ObjectTypeBasicRecoveryPoint
|
||||
|
||||
const (
|
||||
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
|
||||
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
|
||||
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
|
||||
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
|
||||
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
|
||||
ObjectTypeAzureFileShareRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureFileShareRecoveryPoint
|
||||
ObjectTypeAzureWorkloadRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSAPHanaRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSAPHanaRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLPointInTimeRecoveryPoint
|
||||
ObjectTypeAzureWorkloadSQLRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeAzureWorkloadSQLRecoveryPoint
|
||||
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeGenericRecoveryPoint
|
||||
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeIaasVMRecoveryPoint
|
||||
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = original.ObjectTypeRecoveryPoint
|
||||
)
|
||||
|
||||
type ObjectTypeBasicRestoreRequest = original.ObjectTypeBasicRestoreRequest
|
||||
|
||||
const (
|
||||
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
|
||||
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
|
||||
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
|
||||
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
|
||||
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
|
||||
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
|
||||
ObjectTypeAzureFileShareRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureFileShareRestoreRequest
|
||||
ObjectTypeAzureWorkloadRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadRestoreRequest
|
||||
ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaPointInTimeRestoreRequest
|
||||
ObjectTypeAzureWorkloadSAPHanaRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSAPHanaRestoreRequest
|
||||
ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLPointInTimeRestoreRequest
|
||||
ObjectTypeAzureWorkloadSQLRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeAzureWorkloadSQLRestoreRequest
|
||||
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeIaasVMRestoreRequest
|
||||
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = original.ObjectTypeRestoreRequest
|
||||
)
|
||||
|
||||
type OperationStatusValues = original.OperationStatusValues
|
||||
@ -456,6 +481,8 @@ const (
|
||||
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = original.ProtectableItemTypeIaaSVMProtectableItem
|
||||
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftClassicComputevirtualMachines
|
||||
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = original.ProtectableItemTypeMicrosoftComputevirtualMachines
|
||||
ProtectableItemTypeSAPHanaDatabase ProtectableItemType = original.ProtectableItemTypeSAPHanaDatabase
|
||||
ProtectableItemTypeSAPHanaSystem ProtectableItemType = original.ProtectableItemTypeSAPHanaSystem
|
||||
ProtectableItemTypeSQLAvailabilityGroupContainer ProtectableItemType = original.ProtectableItemTypeSQLAvailabilityGroupContainer
|
||||
ProtectableItemTypeSQLDataBase ProtectableItemType = original.ProtectableItemTypeSQLDataBase
|
||||
ProtectableItemTypeSQLInstance ProtectableItemType = original.ProtectableItemTypeSQLInstance
|
||||
@ -488,6 +515,8 @@ type ProtectedItemType = original.ProtectedItemType
|
||||
const (
|
||||
ProtectedItemTypeAzureFileShareProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureFileShareProtectedItem
|
||||
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureIaaSVMProtectedItem
|
||||
ProtectedItemTypeAzureVMWorkloadProtectedItem ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadProtectedItem
|
||||
ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSAPHanaDatabase
|
||||
ProtectedItemTypeAzureVMWorkloadSQLDatabase ProtectedItemType = original.ProtectedItemTypeAzureVMWorkloadSQLDatabase
|
||||
ProtectedItemTypeDPMProtectedItem ProtectedItemType = original.ProtectedItemTypeDPMProtectedItem
|
||||
ProtectedItemTypeGenericProtectedItem ProtectedItemType = original.ProtectedItemTypeGenericProtectedItem
|
||||
@ -501,8 +530,11 @@ const (
|
||||
type ProtectionIntentItemType = original.ProtectionIntentItemType
|
||||
|
||||
const (
|
||||
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
|
||||
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
|
||||
ProtectionIntentItemTypeAzureResourceItem ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureResourceItem
|
||||
ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadAutoProtectionIntent
|
||||
ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeAzureWorkloadSQLAutoProtectionIntent
|
||||
ProtectionIntentItemTypeProtectionIntent ProtectionIntentItemType = original.ProtectionIntentItemTypeProtectionIntent
|
||||
ProtectionIntentItemTypeRecoveryServiceVaultItem ProtectionIntentItemType = original.ProtectionIntentItemTypeRecoveryServiceVaultItem
|
||||
)
|
||||
|
||||
type ProtectionState = original.ProtectionState
|
||||
@ -697,25 +729,30 @@ const (
|
||||
type WeekOfMonth = original.WeekOfMonth
|
||||
|
||||
const (
|
||||
First WeekOfMonth = original.First
|
||||
Fourth WeekOfMonth = original.Fourth
|
||||
Last WeekOfMonth = original.Last
|
||||
Second WeekOfMonth = original.Second
|
||||
Third WeekOfMonth = original.Third
|
||||
WeekOfMonthFirst WeekOfMonth = original.WeekOfMonthFirst
|
||||
WeekOfMonthFourth WeekOfMonth = original.WeekOfMonthFourth
|
||||
WeekOfMonthInvalid WeekOfMonth = original.WeekOfMonthInvalid
|
||||
WeekOfMonthLast WeekOfMonth = original.WeekOfMonthLast
|
||||
WeekOfMonthSecond WeekOfMonth = original.WeekOfMonthSecond
|
||||
WeekOfMonthThird WeekOfMonth = original.WeekOfMonthThird
|
||||
)
|
||||
|
||||
type WorkloadItemType = original.WorkloadItemType
|
||||
|
||||
const (
|
||||
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
|
||||
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
|
||||
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
|
||||
WorkloadItemTypeInvalid WorkloadItemType = original.WorkloadItemTypeInvalid
|
||||
WorkloadItemTypeSAPHanaDatabase WorkloadItemType = original.WorkloadItemTypeSAPHanaDatabase
|
||||
WorkloadItemTypeSAPHanaSystem WorkloadItemType = original.WorkloadItemTypeSAPHanaSystem
|
||||
WorkloadItemTypeSQLDataBase WorkloadItemType = original.WorkloadItemTypeSQLDataBase
|
||||
WorkloadItemTypeSQLInstance WorkloadItemType = original.WorkloadItemTypeSQLInstance
|
||||
)
|
||||
|
||||
type WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeBasicWorkloadItem
|
||||
|
||||
const (
|
||||
WorkloadItemTypeAzureVMWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeAzureVMWorkloadItem
|
||||
WorkloadItemTypeSAPHanaDatabase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaDatabase1
|
||||
WorkloadItemTypeSAPHanaSystem1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSAPHanaSystem1
|
||||
WorkloadItemTypeSQLDataBase1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLDataBase1
|
||||
WorkloadItemTypeSQLInstance1 WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeSQLInstance1
|
||||
WorkloadItemTypeWorkloadItem WorkloadItemTypeBasicWorkloadItem = original.WorkloadItemTypeWorkloadItem
|
||||
@ -731,6 +768,7 @@ const (
|
||||
WorkloadTypeFileFolder WorkloadType = original.WorkloadTypeFileFolder
|
||||
WorkloadTypeGenericDataSource WorkloadType = original.WorkloadTypeGenericDataSource
|
||||
WorkloadTypeInvalid WorkloadType = original.WorkloadTypeInvalid
|
||||
WorkloadTypeSAPHanaDatabase WorkloadType = original.WorkloadTypeSAPHanaDatabase
|
||||
WorkloadTypeSharepoint WorkloadType = original.WorkloadTypeSharepoint
|
||||
WorkloadTypeSQLDataBase WorkloadType = original.WorkloadTypeSQLDataBase
|
||||
WorkloadTypeSQLDB WorkloadType = original.WorkloadTypeSQLDB
|
||||
@ -739,6 +777,7 @@ const (
|
||||
WorkloadTypeVMwareVM WorkloadType = original.WorkloadTypeVMwareVM
|
||||
)
|
||||
|
||||
type AzureBackupGoalFeatureSupportRequest = original.AzureBackupGoalFeatureSupportRequest
|
||||
type AzureBackupServerContainer = original.AzureBackupServerContainer
|
||||
type AzureBackupServerEngine = original.AzureBackupServerEngine
|
||||
type AzureFileShareBackupRequest = original.AzureFileShareBackupRequest
|
||||
@ -763,6 +802,8 @@ type BasicAzureIaaSVMProtectedItem = original.BasicAzureIaaSVMProtectedItem
|
||||
type AzureIaaSVMProtectedItem = original.AzureIaaSVMProtectedItem
|
||||
type AzureIaaSVMProtectedItemExtendedInfo = original.AzureIaaSVMProtectedItemExtendedInfo
|
||||
type AzureIaaSVMProtectionPolicy = original.AzureIaaSVMProtectionPolicy
|
||||
type BasicAzureRecoveryServiceVaultProtectionIntent = original.BasicAzureRecoveryServiceVaultProtectionIntent
|
||||
type AzureRecoveryServiceVaultProtectionIntent = original.AzureRecoveryServiceVaultProtectionIntent
|
||||
type AzureResourceProtectionIntent = original.AzureResourceProtectionIntent
|
||||
type AzureSQLAGWorkloadContainerProtectionContainer = original.AzureSQLAGWorkloadContainerProtectionContainer
|
||||
type AzureSQLContainer = original.AzureSQLContainer
|
||||
@ -783,14 +824,23 @@ type BasicAzureVMWorkloadItem = original.BasicAzureVMWorkloadItem
|
||||
type AzureVMWorkloadItem = original.AzureVMWorkloadItem
|
||||
type BasicAzureVMWorkloadProtectableItem = original.BasicAzureVMWorkloadProtectableItem
|
||||
type AzureVMWorkloadProtectableItem = original.AzureVMWorkloadProtectableItem
|
||||
type BasicAzureVMWorkloadProtectedItem = original.BasicAzureVMWorkloadProtectedItem
|
||||
type AzureVMWorkloadProtectedItem = original.AzureVMWorkloadProtectedItem
|
||||
type AzureVMWorkloadProtectedItemExtendedInfo = original.AzureVMWorkloadProtectedItemExtendedInfo
|
||||
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 AzureVMWorkloadSQLDatabaseProtectableItem = original.AzureVMWorkloadSQLDatabaseProtectableItem
|
||||
type AzureVMWorkloadSQLDatabaseProtectedItem = original.AzureVMWorkloadSQLDatabaseProtectedItem
|
||||
type AzureVMWorkloadSQLDatabaseWorkloadItem = original.AzureVMWorkloadSQLDatabaseWorkloadItem
|
||||
type AzureVMWorkloadSQLInstanceProtectableItem = original.AzureVMWorkloadSQLInstanceProtectableItem
|
||||
type AzureVMWorkloadSQLInstanceWorkloadItem = original.AzureVMWorkloadSQLInstanceWorkloadItem
|
||||
type BasicAzureWorkloadAutoProtectionIntent = original.BasicAzureWorkloadAutoProtectionIntent
|
||||
type AzureWorkloadAutoProtectionIntent = original.AzureWorkloadAutoProtectionIntent
|
||||
type AzureWorkloadBackupRequest = original.AzureWorkloadBackupRequest
|
||||
type BasicAzureWorkloadContainer = original.BasicAzureWorkloadContainer
|
||||
type AzureWorkloadContainer = original.AzureWorkloadContainer
|
||||
@ -803,6 +853,13 @@ type BasicAzureWorkloadRecoveryPoint = original.BasicAzureWorkloadRecoveryPoint
|
||||
type AzureWorkloadRecoveryPoint = original.AzureWorkloadRecoveryPoint
|
||||
type BasicAzureWorkloadRestoreRequest = original.BasicAzureWorkloadRestoreRequest
|
||||
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 AzureWorkloadSQLPointInTimeRestoreRequest = original.AzureWorkloadSQLPointInTimeRestoreRequest
|
||||
type BasicAzureWorkloadSQLRecoveryPoint = original.BasicAzureWorkloadSQLRecoveryPoint
|
||||
@ -815,6 +872,7 @@ type BMSBackupEngineQueryObject = original.BMSBackupEngineQueryObject
|
||||
type BMSBackupEnginesQueryObject = original.BMSBackupEnginesQueryObject
|
||||
type BMSBackupSummariesQueryObject = original.BMSBackupSummariesQueryObject
|
||||
type BMSContainerQueryObject = original.BMSContainerQueryObject
|
||||
type BMSContainersInquiryQueryObject = original.BMSContainersInquiryQueryObject
|
||||
type BMSPOQueryObject = original.BMSPOQueryObject
|
||||
type BMSRefreshContainersQueryObject = original.BMSRefreshContainersQueryObject
|
||||
type BMSRPQueryObject = original.BMSRPQueryObject
|
||||
@ -1102,6 +1160,9 @@ func PossibleContainerTypeBasicProtectionContainerValues() []ContainerTypeBasicP
|
||||
func PossibleCopyOptionsValues() []CopyOptions {
|
||||
return original.PossibleCopyOptionsValues()
|
||||
}
|
||||
func PossibleCreateModeValues() []CreateMode {
|
||||
return original.PossibleCreateModeValues()
|
||||
}
|
||||
func PossibleDataSourceTypeValues() []DataSourceType {
|
||||
return original.PossibleDataSourceTypeValues()
|
||||
}
|
||||
|
@ -33,71 +33,64 @@ const (
|
||||
Single AppliedScopeType = original.Single
|
||||
)
|
||||
|
||||
type AppliedScopeType1 = original.AppliedScopeType1
|
||||
type ErrorResponseCode = original.ErrorResponseCode
|
||||
|
||||
const (
|
||||
AppliedScopeType1Shared AppliedScopeType1 = original.AppliedScopeType1Shared
|
||||
AppliedScopeType1Single AppliedScopeType1 = original.AppliedScopeType1Single
|
||||
)
|
||||
|
||||
type Code = original.Code
|
||||
|
||||
const (
|
||||
ActivateQuoteFailed Code = original.ActivateQuoteFailed
|
||||
AppliedScopesNotAssociatedWithCommerceAccount Code = original.AppliedScopesNotAssociatedWithCommerceAccount
|
||||
AuthorizationFailed Code = original.AuthorizationFailed
|
||||
BadRequest Code = original.BadRequest
|
||||
BillingCustomerInputError Code = original.BillingCustomerInputError
|
||||
BillingError Code = original.BillingError
|
||||
BillingPaymentInstrumentHardError Code = original.BillingPaymentInstrumentHardError
|
||||
BillingPaymentInstrumentSoftError Code = original.BillingPaymentInstrumentSoftError
|
||||
BillingScopeIDCannotBeChanged Code = original.BillingScopeIDCannotBeChanged
|
||||
BillingTransientError Code = original.BillingTransientError
|
||||
CalculatePriceFailed Code = original.CalculatePriceFailed
|
||||
CapacityUpdateScopesFailed Code = original.CapacityUpdateScopesFailed
|
||||
ClientCertificateThumbprintNotSet Code = original.ClientCertificateThumbprintNotSet
|
||||
CreateQuoteFailed Code = original.CreateQuoteFailed
|
||||
Forbidden Code = original.Forbidden
|
||||
FulfillmentConfigurationError Code = original.FulfillmentConfigurationError
|
||||
FulfillmentError Code = original.FulfillmentError
|
||||
FulfillmentOutOfStockError Code = original.FulfillmentOutOfStockError
|
||||
FulfillmentTransientError Code = original.FulfillmentTransientError
|
||||
HTTPMethodNotSupported Code = original.HTTPMethodNotSupported
|
||||
InternalServerError Code = original.InternalServerError
|
||||
InvalidAccessToken Code = original.InvalidAccessToken
|
||||
InvalidFulfillmentRequestParameters Code = original.InvalidFulfillmentRequestParameters
|
||||
InvalidHealthCheckType Code = original.InvalidHealthCheckType
|
||||
InvalidLocationID Code = original.InvalidLocationID
|
||||
InvalidRefundQuantity Code = original.InvalidRefundQuantity
|
||||
InvalidRequestContent Code = original.InvalidRequestContent
|
||||
InvalidRequestURI Code = original.InvalidRequestURI
|
||||
InvalidReservationID Code = original.InvalidReservationID
|
||||
InvalidReservationOrderID Code = original.InvalidReservationOrderID
|
||||
InvalidSingleAppliedScopesCount Code = original.InvalidSingleAppliedScopesCount
|
||||
InvalidSubscriptionID Code = original.InvalidSubscriptionID
|
||||
InvalidTenantID Code = original.InvalidTenantID
|
||||
MissingAppliedScopesForSingle Code = original.MissingAppliedScopesForSingle
|
||||
MissingTenantID Code = original.MissingTenantID
|
||||
NonsupportedAccountID Code = original.NonsupportedAccountID
|
||||
NotSpecified Code = original.NotSpecified
|
||||
NotSupportedCountry Code = original.NotSupportedCountry
|
||||
NoValidReservationsToReRate Code = original.NoValidReservationsToReRate
|
||||
OperationCannotBePerformedInCurrentState Code = original.OperationCannotBePerformedInCurrentState
|
||||
OperationFailed Code = original.OperationFailed
|
||||
PatchValuesSameAsExisting Code = original.PatchValuesSameAsExisting
|
||||
PaymentInstrumentNotFound Code = original.PaymentInstrumentNotFound
|
||||
PurchaseError Code = original.PurchaseError
|
||||
ReRateOnlyAllowedForEA Code = original.ReRateOnlyAllowedForEA
|
||||
ReservationIDNotInReservationOrder Code = original.ReservationIDNotInReservationOrder
|
||||
ReservationOrderCreationFailed Code = original.ReservationOrderCreationFailed
|
||||
ReservationOrderIDAlreadyExists Code = original.ReservationOrderIDAlreadyExists
|
||||
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
|
||||
ActivateQuoteFailed ErrorResponseCode = original.ActivateQuoteFailed
|
||||
AppliedScopesNotAssociatedWithCommerceAccount ErrorResponseCode = original.AppliedScopesNotAssociatedWithCommerceAccount
|
||||
AuthorizationFailed ErrorResponseCode = original.AuthorizationFailed
|
||||
BadRequest ErrorResponseCode = original.BadRequest
|
||||
BillingCustomerInputError ErrorResponseCode = original.BillingCustomerInputError
|
||||
BillingError ErrorResponseCode = original.BillingError
|
||||
BillingPaymentInstrumentHardError ErrorResponseCode = original.BillingPaymentInstrumentHardError
|
||||
BillingPaymentInstrumentSoftError ErrorResponseCode = original.BillingPaymentInstrumentSoftError
|
||||
BillingScopeIDCannotBeChanged ErrorResponseCode = original.BillingScopeIDCannotBeChanged
|
||||
BillingTransientError ErrorResponseCode = original.BillingTransientError
|
||||
CalculatePriceFailed ErrorResponseCode = original.CalculatePriceFailed
|
||||
CapacityUpdateScopesFailed ErrorResponseCode = original.CapacityUpdateScopesFailed
|
||||
ClientCertificateThumbprintNotSet ErrorResponseCode = original.ClientCertificateThumbprintNotSet
|
||||
CreateQuoteFailed ErrorResponseCode = original.CreateQuoteFailed
|
||||
Forbidden ErrorResponseCode = original.Forbidden
|
||||
FulfillmentConfigurationError ErrorResponseCode = original.FulfillmentConfigurationError
|
||||
FulfillmentError ErrorResponseCode = original.FulfillmentError
|
||||
FulfillmentOutOfStockError ErrorResponseCode = original.FulfillmentOutOfStockError
|
||||
FulfillmentTransientError ErrorResponseCode = original.FulfillmentTransientError
|
||||
HTTPMethodNotSupported ErrorResponseCode = original.HTTPMethodNotSupported
|
||||
InternalServerError ErrorResponseCode = original.InternalServerError
|
||||
InvalidAccessToken ErrorResponseCode = original.InvalidAccessToken
|
||||
InvalidFulfillmentRequestParameters ErrorResponseCode = original.InvalidFulfillmentRequestParameters
|
||||
InvalidHealthCheckType ErrorResponseCode = original.InvalidHealthCheckType
|
||||
InvalidLocationID ErrorResponseCode = original.InvalidLocationID
|
||||
InvalidRefundQuantity ErrorResponseCode = original.InvalidRefundQuantity
|
||||
InvalidRequestContent ErrorResponseCode = original.InvalidRequestContent
|
||||
InvalidRequestURI ErrorResponseCode = original.InvalidRequestURI
|
||||
InvalidReservationID ErrorResponseCode = original.InvalidReservationID
|
||||
InvalidReservationOrderID ErrorResponseCode = original.InvalidReservationOrderID
|
||||
InvalidSingleAppliedScopesCount ErrorResponseCode = original.InvalidSingleAppliedScopesCount
|
||||
InvalidSubscriptionID ErrorResponseCode = original.InvalidSubscriptionID
|
||||
InvalidTenantID ErrorResponseCode = original.InvalidTenantID
|
||||
MissingAppliedScopesForSingle ErrorResponseCode = original.MissingAppliedScopesForSingle
|
||||
MissingTenantID ErrorResponseCode = original.MissingTenantID
|
||||
NonsupportedAccountID ErrorResponseCode = original.NonsupportedAccountID
|
||||
NotSpecified ErrorResponseCode = original.NotSpecified
|
||||
NotSupportedCountry ErrorResponseCode = original.NotSupportedCountry
|
||||
NoValidReservationsToReRate ErrorResponseCode = original.NoValidReservationsToReRate
|
||||
OperationCannotBePerformedInCurrentState ErrorResponseCode = original.OperationCannotBePerformedInCurrentState
|
||||
OperationFailed ErrorResponseCode = original.OperationFailed
|
||||
PatchValuesSameAsExisting ErrorResponseCode = original.PatchValuesSameAsExisting
|
||||
PaymentInstrumentNotFound ErrorResponseCode = original.PaymentInstrumentNotFound
|
||||
PurchaseError ErrorResponseCode = original.PurchaseError
|
||||
ReRateOnlyAllowedForEA ErrorResponseCode = original.ReRateOnlyAllowedForEA
|
||||
ReservationIDNotInReservationOrder ErrorResponseCode = original.ReservationIDNotInReservationOrder
|
||||
ReservationOrderCreationFailed ErrorResponseCode = original.ReservationOrderCreationFailed
|
||||
ReservationOrderIDAlreadyExists ErrorResponseCode = original.ReservationOrderIDAlreadyExists
|
||||
ReservationOrderNotEnabled ErrorResponseCode = original.ReservationOrderNotEnabled
|
||||
ReservationOrderNotFound ErrorResponseCode = original.ReservationOrderNotFound
|
||||
RiskCheckFailed ErrorResponseCode = original.RiskCheckFailed
|
||||
RoleAssignmentCreationFailed ErrorResponseCode = original.RoleAssignmentCreationFailed
|
||||
ServerTimeout ErrorResponseCode = original.ServerTimeout
|
||||
UnauthenticatedRequestsThrottled ErrorResponseCode = original.UnauthenticatedRequestsThrottled
|
||||
UnsupportedReservationTerm ErrorResponseCode = original.UnsupportedReservationTerm
|
||||
)
|
||||
|
||||
type InstanceFlexibility = original.InstanceFlexibility
|
||||
@ -108,81 +101,11 @@ const (
|
||||
On InstanceFlexibility = original.On
|
||||
)
|
||||
|
||||
type InstanceFlexibility1 = original.InstanceFlexibility1
|
||||
type ReservationTerm = original.ReservationTerm
|
||||
|
||||
const (
|
||||
InstanceFlexibility1NotSupported InstanceFlexibility1 = original.InstanceFlexibility1NotSupported
|
||||
InstanceFlexibility1Off InstanceFlexibility1 = original.InstanceFlexibility1Off
|
||||
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
|
||||
P1Y ReservationTerm = original.P1Y
|
||||
P3Y ReservationTerm = original.P3Y
|
||||
)
|
||||
|
||||
type ReservedResourceType = original.ReservedResourceType
|
||||
@ -207,13 +130,6 @@ const (
|
||||
StatusCodeSucceeded StatusCode = original.StatusCodeSucceeded
|
||||
)
|
||||
|
||||
type Term = original.Term
|
||||
|
||||
const (
|
||||
P1Y Term = original.P1Y
|
||||
P3Y Term = original.P3Y
|
||||
)
|
||||
|
||||
type AppliedReservationList = original.AppliedReservationList
|
||||
type AppliedReservations = original.AppliedReservations
|
||||
type AppliedReservationsProperties = original.AppliedReservationsProperties
|
||||
@ -265,26 +181,14 @@ func NewWithBaseURI(baseURI string) BaseClient {
|
||||
func PossibleAppliedScopeTypeValues() []AppliedScopeType {
|
||||
return original.PossibleAppliedScopeTypeValues()
|
||||
}
|
||||
func PossibleAppliedScopeType1Values() []AppliedScopeType1 {
|
||||
return original.PossibleAppliedScopeType1Values()
|
||||
}
|
||||
func PossibleCodeValues() []Code {
|
||||
return original.PossibleCodeValues()
|
||||
func PossibleErrorResponseCodeValues() []ErrorResponseCode {
|
||||
return original.PossibleErrorResponseCodeValues()
|
||||
}
|
||||
func PossibleInstanceFlexibilityValues() []InstanceFlexibility {
|
||||
return original.PossibleInstanceFlexibilityValues()
|
||||
}
|
||||
func PossibleInstanceFlexibility1Values() []InstanceFlexibility1 {
|
||||
return original.PossibleInstanceFlexibility1Values()
|
||||
}
|
||||
func PossibleLocationValues() []Location {
|
||||
return original.PossibleLocationValues()
|
||||
}
|
||||
func PossibleProvisioningStateValues() []ProvisioningState {
|
||||
return original.PossibleProvisioningStateValues()
|
||||
}
|
||||
func PossibleProvisioningState1Values() []ProvisioningState1 {
|
||||
return original.PossibleProvisioningState1Values()
|
||||
func PossibleReservationTermValues() []ReservationTerm {
|
||||
return original.PossibleReservationTermValues()
|
||||
}
|
||||
func PossibleReservedResourceTypeValues() []ReservedResourceType {
|
||||
return original.PossibleReservedResourceTypeValues()
|
||||
@ -292,9 +196,6 @@ func PossibleReservedResourceTypeValues() []ReservedResourceType {
|
||||
func PossibleStatusCodeValues() []StatusCode {
|
||||
return original.PossibleStatusCodeValues()
|
||||
}
|
||||
func PossibleTermValues() []Term {
|
||||
return original.PossibleTermValues()
|
||||
}
|
||||
func NewOperationClient() OperationClient {
|
||||
return original.NewOperationClient()
|
||||
}
|
||||
|
120
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/storage/datalake/storagedatalake/models.go
generated
vendored
Normal file
120
vendor/github.com/Azure/azure-sdk-for-go/profiles/preview/storage/datalake/storagedatalake/models.go
generated
vendored
Normal 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()
|
||||
}
|
121
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservice.go
generated
vendored
Normal file
121
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservice.go
generated
vendored
Normal 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
|
||||
}
|
@ -21,6 +21,7 @@ import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/satori/go.uuid"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@ -39,6 +40,145 @@ func NewAddsServiceMembersClientWithBaseURI(baseURI string) AddsServiceMembersCl
|
||||
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
|
||||
// onboarded to Azure Active Directory Connect Health.
|
||||
// Parameters:
|
||||
@ -135,3 +275,74 @@ func (client AddsServiceMembersClient) ListComplete(ctx context.Context, service
|
||||
result.page, err = client.List(ctx, serviceName, filter)
|
||||
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
|
||||
}
|
||||
|
@ -448,71 +448,6 @@ func (client AddsServicesClient) GetMetricMetadataForGroupResponder(resp *http.R
|
||||
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
|
||||
// Connect Health.
|
||||
// Parameters:
|
||||
@ -1019,6 +954,79 @@ func (client AddsServicesClient) ListPremiumServicesComplete(ctx context.Context
|
||||
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
|
||||
// Directory Domain Service, that is onboarded to Azure Active Directory Connect Health.
|
||||
// Parameters:
|
||||
|
@ -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
|
||||
}
|
213
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesservicemembers.go
generated
vendored
Normal file
213
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesservicemembers.go
generated
vendored
Normal 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
|
||||
}
|
239
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesuserpreference.go
generated
vendored
Normal file
239
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/addsservicesuserpreference.go
generated
vendored
Normal 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
|
||||
}
|
@ -2110,6 +2110,19 @@ type PasswordManagementSettings struct {
|
||||
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.
|
||||
type ReplicationStatus struct {
|
||||
autorest.Response `json:"-"`
|
||||
@ -2613,6 +2626,13 @@ type TenantOnboardingDetails struct {
|
||||
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.
|
||||
type ValueDelta struct {
|
||||
// OperationType - The operation type. Possible values include: 'ValueDeltaOperationTypeUndefined', 'ValueDeltaOperationTypeAdd', 'ValueDeltaOperationTypeUpdate', 'ValueDeltaOperationTypeDelete'
|
||||
|
98
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/reports.go
generated
vendored
Normal file
98
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/reports.go
generated
vendored
Normal 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
|
||||
}
|
121
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/service.go
generated
vendored
Normal file
121
vendor/github.com/Azure/azure-sdk-for-go/services/adhybridhealthservice/mgmt/2014-01-01/adhybridhealthservice/service.go
generated
vendored
Normal 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
|
||||
}
|
@ -311,6 +311,88 @@ func (client ServiceMembersClient) GetResponder(resp *http.Response) (result Ser
|
||||
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.
|
||||
// Parameters:
|
||||
// serviceName - the name of the service.
|
||||
@ -954,85 +1036,3 @@ func (client ServiceMembersClient) ListGlobalConfigurationResponder(resp *http.R
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
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
|
||||
}
|
||||
|
@ -20,7 +20,6 @@ package advisor
|
||||
import (
|
||||
"encoding/json"
|
||||
"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/to"
|
||||
"github.com/satori/go.uuid"
|
||||
@ -410,29 +409,6 @@ func (rp RecommendationProperties) MarshalJSON() ([]byte, error) {
|
||||
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.
|
||||
type Resource struct {
|
||||
// ID - The resource ID.
|
||||
|
@ -175,19 +175,25 @@ func (client RecommendationsClient) GetResponder(resp *http.Response) (result Re
|
||||
// Parameters:
|
||||
// operationID - the operation ID, which can be found from the Location field in the generate recommendation
|
||||
// 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)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", nil, "Failure preparing request")
|
||||
return
|
||||
}
|
||||
|
||||
result, err = client.GetGenerateStatusSender(req)
|
||||
resp, err := client.GetGenerateStatusSender(req)
|
||||
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
|
||||
}
|
||||
|
||||
result, err = client.GetGenerateStatusResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "advisor.RecommendationsClient", "GetGenerateStatus", resp, "Failure responding to request")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
@ -213,19 +219,9 @@ func (client RecommendationsClient) GetGenerateStatusPreparer(ctx context.Contex
|
||||
|
||||
// GetGenerateStatusSender sends the GetGenerateStatus request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client RecommendationsClient) GetGenerateStatusSender(req *http.Request) (future RecommendationsGetGenerateStatusFuture, err error) {
|
||||
var resp *http.Response
|
||||
resp, err = autorest.SendWithSender(client, req,
|
||||
func (client RecommendationsClient) GetGenerateStatusSender(req *http.Request) (*http.Response, error) {
|
||||
return autorest.SendWithSender(client, req,
|
||||
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
|
||||
|
@ -24,19 +24,19 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// AnalyticsItemClient is the composite Swagger for Application Insights Management Client
|
||||
type AnalyticsItemClient struct {
|
||||
// AnalyticsItemsClient is the composite Swagger for Application Insights Management Client
|
||||
type AnalyticsItemsClient struct {
|
||||
BaseClient
|
||||
}
|
||||
|
||||
// NewAnalyticsItemClient creates an instance of the AnalyticsItemClient client.
|
||||
func NewAnalyticsItemClient(subscriptionID string) AnalyticsItemClient {
|
||||
return NewAnalyticsItemClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
// NewAnalyticsItemsClient creates an instance of the AnalyticsItemsClient client.
|
||||
func NewAnalyticsItemsClient(subscriptionID string) AnalyticsItemsClient {
|
||||
return NewAnalyticsItemsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewAnalyticsItemClientWithBaseURI creates an instance of the AnalyticsItemClient client.
|
||||
func NewAnalyticsItemClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemClient {
|
||||
return AnalyticsItemClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
// NewAnalyticsItemsClientWithBaseURI creates an instance of the AnalyticsItemsClient client.
|
||||
func NewAnalyticsItemsClientWithBaseURI(baseURI string, subscriptionID string) AnalyticsItemsClient {
|
||||
return AnalyticsItemsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// 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.
|
||||
// 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
|
||||
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)
|
||||
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
|
||||
}
|
||||
|
||||
resp, err := client.DeleteSender(req)
|
||||
if err != nil {
|
||||
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
|
||||
}
|
||||
|
||||
result, err = client.DeleteResponder(resp)
|
||||
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
|
||||
}
|
||||
|
||||
// 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{}{
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"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
|
||||
// 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,
|
||||
azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// DeleteResponder handles the response to the Delete request. The method always
|
||||
// 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(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
@ -124,30 +124,30 @@ func (client AnalyticsItemClient) DeleteResponder(resp *http.Response) (result a
|
||||
// users with access to 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
|
||||
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)
|
||||
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
|
||||
}
|
||||
|
||||
resp, err := client.GetSender(req)
|
||||
if err != nil {
|
||||
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
|
||||
}
|
||||
|
||||
result, err = client.GetResponder(resp)
|
||||
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
|
||||
}
|
||||
|
||||
// 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{}{
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"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
|
||||
// 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,
|
||||
azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// GetResponder handles the response to the Get request. The method always
|
||||
// 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(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
@ -205,30 +205,30 @@ func (client AnalyticsItemClient) GetResponder(resp *http.Response) (result Appl
|
||||
// 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,
|
||||
// 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)
|
||||
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
|
||||
}
|
||||
|
||||
resp, err := client.ListSender(req)
|
||||
if err != nil {
|
||||
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
|
||||
}
|
||||
|
||||
result, err = client.ListResponder(resp)
|
||||
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
|
||||
}
|
||||
|
||||
// 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{}{
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"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
|
||||
// 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,
|
||||
azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// ListResponder handles the response to the List request. The method always
|
||||
// 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(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
@ -292,30 +292,30 @@ func (client AnalyticsItemClient) ListResponder(resp *http.Response) (result Lis
|
||||
// Insights component.
|
||||
// overrideItem - flag indicating whether or not to force save an item. This allows overriding an item if it
|
||||
// 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)
|
||||
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
|
||||
}
|
||||
|
||||
resp, err := client.PutSender(req)
|
||||
if err != nil {
|
||||
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
|
||||
}
|
||||
|
||||
result, err = client.PutResponder(resp)
|
||||
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
|
||||
}
|
||||
|
||||
// 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{}{
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
"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
|
||||
// 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,
|
||||
azure.DoRetryWithRegistration(client.Client))
|
||||
}
|
||||
|
||||
// PutResponder handles the response to the Put request. The method always
|
||||
// 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(
|
||||
resp,
|
||||
client.ByInspecting(),
|
@ -254,7 +254,7 @@ func (client AnnotationsClient) GetResponder(resp *http.Response) (result ListAn
|
||||
// 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.
|
||||
// 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)
|
||||
if err != nil {
|
||||
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
|
||||
// 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(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result.Value),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
|
@ -250,6 +250,75 @@ func (client ComponentsClient) GetResponder(resp *http.Response) (result Applica
|
||||
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.
|
||||
func (client ComponentsClient) List(ctx context.Context) (result ApplicationInsightsComponentListResultPage, err error) {
|
||||
result.fn = client.listNextResults
|
||||
@ -438,7 +507,7 @@ func (client ComponentsClient) ListByResourceGroupComplete(ctx context.Context,
|
||||
// resourceGroupName - the name of the resource group.
|
||||
// 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
|
||||
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{
|
||||
{TargetValue: body,
|
||||
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
|
||||
}
|
||||
|
||||
result, err = client.PurgeSender(req)
|
||||
resp, err := client.PurgeSender(req)
|
||||
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
|
||||
}
|
||||
|
||||
result, err = client.PurgeResponder(resp)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "insights.ComponentsClient", "Purge", resp, "Failure responding to request")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
@ -486,24 +561,14 @@ func (client ComponentsClient) PurgePreparer(ctx context.Context, resourceGroupN
|
||||
|
||||
// PurgeSender sends the Purge request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client ComponentsClient) PurgeSender(req *http.Request) (future ComponentsPurgeFuture, err error) {
|
||||
var resp *http.Response
|
||||
resp, err = autorest.SendWithSender(client, req,
|
||||
func (client ComponentsClient) PurgeSender(req *http.Request) (*http.Response, error) {
|
||||
return autorest.SendWithSender(client, req,
|
||||
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
|
||||
// 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(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
|
@ -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
|
||||
}
|
@ -39,6 +39,216 @@ func NewFavoritesClientWithBaseURI(baseURI string, subscriptionID string) Favori
|
||||
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.
|
||||
// Parameters:
|
||||
// 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}
|
||||
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
|
||||
}
|
||||
|
@ -20,7 +20,6 @@ package insights
|
||||
import (
|
||||
"encoding/json"
|
||||
"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/to"
|
||||
"net/http"
|
||||
@ -190,9 +189,9 @@ type PurgeState string
|
||||
|
||||
const (
|
||||
// Completed ...
|
||||
Completed PurgeState = "Completed"
|
||||
Completed PurgeState = "completed"
|
||||
// Pending ...
|
||||
Pending PurgeState = "Pending"
|
||||
Pending PurgeState = "pending"
|
||||
)
|
||||
|
||||
// PossiblePurgeStateValues returns an array of possible values for the PurgeState const type.
|
||||
@ -268,6 +267,13 @@ type AnnotationError struct {
|
||||
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.
|
||||
type APIKeyRequest struct {
|
||||
// Name - The name of the API Key.
|
||||
@ -876,42 +882,51 @@ type ComponentPurgeBodyFilters struct {
|
||||
|
||||
// ComponentPurgeResponse response containing operationId for a specific purge action.
|
||||
type ComponentPurgeResponse struct {
|
||||
autorest.Response `json:"-"`
|
||||
// OperationID - Id to use when querying for status for a particular purge operation.
|
||||
OperationID *string `json:"operationId,omitempty"`
|
||||
}
|
||||
|
||||
// ComponentPurgeStatusResponse response containing status for a specific purge operation.
|
||||
type ComponentPurgeStatusResponse struct {
|
||||
autorest.Response `json:"-"`
|
||||
// Status - Status of the operation represented by the requested Id. Possible values include: 'Pending', 'Completed'
|
||||
Status PurgeState `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
// ComponentsPurgeFuture an abstraction for monitoring and retrieving the results of a long-running operation.
|
||||
type ComponentsPurgeFuture struct {
|
||||
azure.Future
|
||||
// ComponentsResource an azure resource object
|
||||
type ComponentsResource 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"`
|
||||
}
|
||||
|
||||
// Result returns the result of the asynchronous operation.
|
||||
// If the operation has not completed it will return an error.
|
||||
func (future *ComponentsPurgeFuture) Result(client ComponentsClient) (so SetObject, err error) {
|
||||
var done bool
|
||||
done, err = future.Done(client)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "insights.ComponentsPurgeFuture", "Result", future.Response(), "Polling failure")
|
||||
return
|
||||
// MarshalJSON is the custom marshaler for ComponentsResource.
|
||||
func (cr ComponentsResource) MarshalJSON() ([]byte, error) {
|
||||
objectMap := make(map[string]interface{})
|
||||
if cr.ID != nil {
|
||||
objectMap["id"] = cr.ID
|
||||
}
|
||||
if !done {
|
||||
err = azure.NewAsyncOpIncompleteError("insights.ComponentsPurgeFuture")
|
||||
return
|
||||
if cr.Name != nil {
|
||||
objectMap["name"] = cr.Name
|
||||
}
|
||||
sender := autorest.DecorateSender(client, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
|
||||
if so.Response.Response, err = future.GetResult(sender); err == nil && so.Response.Response.StatusCode != http.StatusNoContent {
|
||||
so, err = client.PurgeResponder(so.Response.Response)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "insights.ComponentsPurgeFuture", "Result", so.Response.Response, "Failure responding to request")
|
||||
}
|
||||
if cr.Type != nil {
|
||||
objectMap["type"] = cr.Type
|
||||
}
|
||||
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.
|
||||
@ -981,12 +996,6 @@ type ListApplicationInsightsComponentProactiveDetectionConfiguration struct {
|
||||
Value *[]ApplicationInsightsComponentProactiveDetectionConfiguration `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// ListWorkItemConfiguration ...
|
||||
type ListWorkItemConfiguration struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]WorkItemConfiguration `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
// Operation CDN REST API operation
|
||||
type Operation struct {
|
||||
// Name - Operation name: {provider}/{resource}/{operation}
|
||||
@ -1108,41 +1117,6 @@ func (page OperationListResultPage) Values() []Operation {
|
||||
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 ...
|
||||
type SetObject struct {
|
||||
autorest.Response `json:"-"`
|
||||
@ -1430,6 +1404,41 @@ type WebTestPropertiesConfiguration struct {
|
||||
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.
|
||||
type Workbook struct {
|
||||
autorest.Response `json:"-"`
|
||||
@ -1588,8 +1597,43 @@ type WorkbookProperties struct {
|
||||
SourceResourceID *string `json:"sourceResourceId,omitempty"`
|
||||
}
|
||||
|
||||
// Workbooks workbook list result.
|
||||
type Workbooks struct {
|
||||
// WorkbookResource an azure resource object
|
||||
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:"-"`
|
||||
// Value - An array of workbooks.
|
||||
Value *[]Workbook `json:"value,omitempty"`
|
||||
@ -1619,6 +1663,13 @@ type WorkItemConfigurationError struct {
|
||||
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
|
||||
type WorkItemCreateConfiguration struct {
|
||||
// ConnectorID - Unique connector id
|
||||
|
@ -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
|
||||
}
|
@ -21,6 +21,7 @@ import (
|
||||
"context"
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@ -39,6 +40,221 @@ func NewWorkbooksClientWithBaseURI(baseURI string, subscriptionID string) Workbo
|
||||
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.
|
||||
// Parameters:
|
||||
// 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.
|
||||
// canFetchContent - flag indicating whether or not to return the full content for each applicable workbook. If
|
||||
// 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)
|
||||
if err != nil {
|
||||
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
|
||||
// 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(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
|
@ -251,7 +251,7 @@ func (client WorkItemConfigurationsClient) GetDefaultResponder(resp *http.Respon
|
||||
// Parameters:
|
||||
// resourceGroupName - the name of the resource group.
|
||||
// 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)
|
||||
if err != nil {
|
||||
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
|
||||
// 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(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByUnmarshallingJSON(&result.Value),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
return
|
||||
|
681
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/client.go
generated
vendored
681
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/client.go
generated
vendored
@ -21,11 +21,7 @@ package insights
|
||||
// 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"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -37,688 +33,17 @@ const (
|
||||
type BaseClient struct {
|
||||
autorest.Client
|
||||
BaseURI string
|
||||
AppID string
|
||||
}
|
||||
|
||||
// New creates an instance of the BaseClient client.
|
||||
func New(appID string) BaseClient {
|
||||
return NewWithBaseURI(DefaultBaseURI, appID)
|
||||
func New() BaseClient {
|
||||
return NewWithBaseURI(DefaultBaseURI)
|
||||
}
|
||||
|
||||
// NewWithBaseURI creates an instance of the BaseClient client.
|
||||
func NewWithBaseURI(baseURI string, appID string) BaseClient {
|
||||
func NewWithBaseURI(baseURI string) BaseClient {
|
||||
return BaseClient{
|
||||
Client: autorest.NewClientWithUserAgent(UserAgent()),
|
||||
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
|
||||
}
|
||||
|
280
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/events.go
generated
vendored
Normal file
280
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/events.go
generated
vendored
Normal 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
|
||||
}
|
283
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/metrics.go
generated
vendored
Normal file
283
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/metrics.go
generated
vendored
Normal 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
|
||||
}
|
91
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/models.go
generated
vendored
91
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/models.go
generated
vendored
@ -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}
|
||||
}
|
||||
|
||||
// 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 Type string
|
||||
|
||||
@ -741,7 +807,7 @@ type EventsCustomMetricInfo struct {
|
||||
// ValueSum - The sum of the custom metric
|
||||
ValueSum *float64 `json:"valueSum,omitempty"`
|
||||
// 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 *float64 `json:"valueMin,omitempty"`
|
||||
// ValueMax - The maximum value of the custom metric
|
||||
@ -1423,7 +1489,7 @@ func (epvr EventsPageViewResult) AsBasicEventsResultData() (BasicEventsResultDat
|
||||
// EventsPerformanceCounterInfo the performance counter info
|
||||
type EventsPerformanceCounterInfo struct {
|
||||
// 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 *string `json:"name,omitempty"`
|
||||
// Category - The category of the performance counter
|
||||
@ -2242,14 +2308,14 @@ type MetricsPostBodySchema struct {
|
||||
// MetricsPostBodySchemaParameters the parameters for a single metrics query
|
||||
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 MetricID `json:"metricId,omitempty"`
|
||||
Timespan *string `json:"timespan,omitempty"`
|
||||
Aggregation *[]string `json:"aggregation,omitempty"`
|
||||
Interval *string `json:"interval,omitempty"`
|
||||
Segment *[]string `json:"segment,omitempty"`
|
||||
Top *int32 `json:"top,omitempty"`
|
||||
Orderby *string `json:"orderby,omitempty"`
|
||||
Filter *string `json:"filter,omitempty"`
|
||||
MetricID MetricID `json:"metricId,omitempty"`
|
||||
Timespan *string `json:"timespan,omitempty"`
|
||||
Aggregation *[]MetricsAggregation `json:"aggregation,omitempty"`
|
||||
Interval *string `json:"interval,omitempty"`
|
||||
Segment *[]MetricsSegment `json:"segment,omitempty"`
|
||||
Top *int32 `json:"top,omitempty"`
|
||||
Orderby *string `json:"orderby,omitempty"`
|
||||
Filter *string `json:"filter,omitempty"`
|
||||
}
|
||||
|
||||
// MetricsResult a metric result.
|
||||
@ -2333,13 +2399,14 @@ func (msi MetricsSegmentInfo) MarshalJSON() ([]byte, error) {
|
||||
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 {
|
||||
// Query - The query to execute.
|
||||
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 *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"`
|
||||
}
|
||||
|
||||
|
112
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/query.go
generated
vendored
Normal file
112
vendor/github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights/query.go
generated
vendored
Normal 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
|
||||
}
|
@ -41,13 +41,16 @@ func NewAccountClientWithBaseURI(baseURI string, subscriptionID string) AccountC
|
||||
}
|
||||
|
||||
// CreateOrUpdate create or update automation account.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is parameters supplied to the create or
|
||||
// update automation account. parameters is parameters supplied to the create or update automation account.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -116,12 +119,15 @@ func (client AccountClient) CreateOrUpdateResponder(resp *http.Response) (result
|
||||
}
|
||||
|
||||
// Delete delete an automation account.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -187,12 +193,15 @@ func (client AccountClient) DeleteResponder(resp *http.Response) (result autores
|
||||
}
|
||||
|
||||
// Get get information about an Automation Account.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -349,12 +358,14 @@ func (client AccountClient) ListComplete(ctx context.Context) (result AccountLis
|
||||
}
|
||||
|
||||
// ListByResourceGroup retrieve a list of accounts within a given resource group.
|
||||
//
|
||||
// resourceGroupName is the resource group name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
func (client AccountClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AccountListResultPage, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -448,13 +459,16 @@ func (client AccountClient) ListByResourceGroupComplete(ctx context.Context, res
|
||||
}
|
||||
|
||||
// Update update an automation account.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is automation account name. parameters is
|
||||
// parameters supplied to the update automation account.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
||||
// is the name of module. activityName is the name of activity.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
||||
// is the name of module.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -42,12 +42,15 @@ func NewAgentRegistrationInformationClientWithBaseURI(baseURI string, subscripti
|
||||
}
|
||||
|
||||
// Get retrieve the automation agent registration information.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -114,13 +117,16 @@ func (client AgentRegistrationInformationClient) GetResponder(resp *http.Respons
|
||||
}
|
||||
|
||||
// RegenerateKey regenerate a primary or secondary agent registration key
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. parameters
|
||||
// is the name of the agent registration key to be regenerated
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,14 +41,17 @@ func NewCertificateClientWithBaseURI(baseURI string, subscriptionID string) Cert
|
||||
}
|
||||
|
||||
// CreateOrUpdate create a certificate.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// certificateName is the parameters supplied to the create or update certificate operation. parameters is the
|
||||
// parameters supplied to the create or update certificate operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
|
||||
{Target: "parameters.CertificateCreateOrUpdateProperties", Name: validation.Null, Rule: true,
|
||||
@ -122,13 +125,16 @@ func (client CertificateClient) CreateOrUpdateResponder(resp *http.Response) (re
|
||||
}
|
||||
|
||||
// Delete delete the certificate.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// certificateName is the name of certificate.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -195,13 +201,16 @@ func (client CertificateClient) DeleteResponder(resp *http.Response) (result aut
|
||||
}
|
||||
|
||||
// Get retrieve the certificate identified by certificate name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// certificateName is the name of certificate.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -269,12 +278,15 @@ func (client CertificateClient) GetResponder(resp *http.Response) (result Certif
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of certificates.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -369,14 +381,17 @@ func (client CertificateClient) ListByAutomationAccountComplete(ctx context.Cont
|
||||
}
|
||||
|
||||
// Update update a certificate.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// certificateName is the parameters supplied to the update certificate operation. parameters is the parameters
|
||||
// supplied to the update certificate operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,14 +41,17 @@ func NewConnectionClientWithBaseURI(baseURI string, subscriptionID string) Conne
|
||||
}
|
||||
|
||||
// CreateOrUpdate create or update a connection.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// connectionName is the parameters supplied to the create or update connection operation. parameters is the
|
||||
// parameters supplied to the create or update connection operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
|
||||
{Target: "parameters.ConnectionCreateOrUpdateProperties", Name: validation.Null, Rule: true,
|
||||
@ -122,13 +125,16 @@ func (client ConnectionClient) CreateOrUpdateResponder(resp *http.Response) (res
|
||||
}
|
||||
|
||||
// Delete delete the connection.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// connectionName is the name of connection.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -196,13 +202,16 @@ func (client ConnectionClient) DeleteResponder(resp *http.Response) (result Conn
|
||||
}
|
||||
|
||||
// Get retrieve the connection identified by connection name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// connectionName is the name of connection.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -270,12 +279,15 @@ func (client ConnectionClient) GetResponder(resp *http.Response) (result Connect
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of connections.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -370,14 +382,17 @@ func (client ConnectionClient) ListByAutomationAccountComplete(ctx context.Conte
|
||||
}
|
||||
|
||||
// Update update a connection.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// connectionName is the parameters supplied to the update a connection operation. parameters is the parameters
|
||||
// supplied to the update a connection operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,14 +41,17 @@ func NewConnectionTypeClientWithBaseURI(baseURI string, subscriptionID string) C
|
||||
}
|
||||
|
||||
// CreateOrUpdate create a connectiontype.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// connectionTypeName is the parameters supplied to the create or update connectiontype operation. parameters is
|
||||
// the parameters supplied to the create or update connectiontype operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
|
||||
{Target: "parameters.ConnectionTypeCreateOrUpdateProperties", Name: validation.Null, Rule: true,
|
||||
@ -122,13 +125,16 @@ func (client ConnectionTypeClient) CreateOrUpdateResponder(resp *http.Response)
|
||||
}
|
||||
|
||||
// Delete delete the connectiontype.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// connectionTypeName is the name of connectiontype.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -195,13 +201,16 @@ func (client ConnectionTypeClient) DeleteResponder(resp *http.Response) (result
|
||||
}
|
||||
|
||||
// Get retrieve the connectiontype identified by connectiontype name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// connectionTypeName is the name of connectiontype.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -269,12 +278,15 @@ func (client ConnectionTypeClient) GetResponder(resp *http.Response) (result Con
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of connectiontypes.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,14 +41,17 @@ func NewCredentialClientWithBaseURI(baseURI string, subscriptionID string) Crede
|
||||
}
|
||||
|
||||
// CreateOrUpdate create a credential.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// credentialName is the parameters supplied to the create or update credential operation. parameters is the
|
||||
// parameters supplied to the create or update credential operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
|
||||
{Target: "parameters.CredentialCreateOrUpdateProperties", Name: validation.Null, Rule: true,
|
||||
@ -124,13 +127,16 @@ func (client CredentialClient) CreateOrUpdateResponder(resp *http.Response) (res
|
||||
}
|
||||
|
||||
// Delete delete the credential.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// credentialName is the name of credential.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -197,13 +203,16 @@ func (client CredentialClient) DeleteResponder(resp *http.Response) (result auto
|
||||
}
|
||||
|
||||
// Get retrieve the credential identified by credential name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// credentialName is the name of credential.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -271,12 +280,15 @@ func (client CredentialClient) GetResponder(resp *http.Response) (result Credent
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of credentials.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -371,14 +383,17 @@ func (client CredentialClient) ListByAutomationAccountComplete(ctx context.Conte
|
||||
}
|
||||
|
||||
// Update update a credential.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// credentialName is the parameters supplied to the Update credential operation. parameters is the parameters
|
||||
// supplied to the Update credential operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -42,14 +42,17 @@ func NewDscCompilationJobClientWithBaseURI(baseURI string, subscriptionID string
|
||||
}
|
||||
|
||||
// Create creates the Dsc compilation job of the configuration.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// compilationJobID is the the DSC configuration Id. parameters is the parameters supplied to the create
|
||||
// compilation job operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
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 {
|
||||
@ -122,13 +125,16 @@ func (client DscCompilationJobClient) CreateResponder(resp *http.Response) (resu
|
||||
}
|
||||
|
||||
// Get retrieve the Dsc configuration compilation job identified by job id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// compilationJobID is the Dsc configuration compilation job id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -196,13 +202,17 @@ func (client DscCompilationJobClient) GetResponder(resp *http.Response) (result
|
||||
}
|
||||
|
||||
// GetStream retrieve the job stream identified by job stream id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id. jobStreamID is the job stream id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -271,13 +281,16 @@ func (client DscCompilationJobClient) GetStreamResponder(resp *http.Response) (r
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of dsc compilation jobs.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is
|
||||
// the filter to apply on the operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -42,13 +42,16 @@ func NewDscCompilationJobStreamClientWithBaseURI(baseURI string, subscriptionID
|
||||
}
|
||||
|
||||
// ListByJob retrieve all the job streams for the compilation Job.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,14 +41,17 @@ func NewDscConfigurationClientWithBaseURI(baseURI string, subscriptionID string)
|
||||
}
|
||||
|
||||
// CreateOrUpdate create the configuration identified by configuration name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// configurationName is the create or update parameters for configuration. parameters is the create or update
|
||||
// parameters for configuration.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.DscConfigurationCreateOrUpdateProperties", 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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// configurationName is the configuration name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -200,13 +206,16 @@ func (client DscConfigurationClient) DeleteResponder(resp *http.Response) (resul
|
||||
}
|
||||
|
||||
// Get retrieve the configuration identified by configuration name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// configurationName is the configuration name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -274,13 +283,16 @@ func (client DscConfigurationClient) GetResponder(resp *http.Response) (result D
|
||||
}
|
||||
|
||||
// GetContent retrieve the configuration script identified by configuration name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// configurationName is the configuration name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -348,17 +360,24 @@ func (client DscConfigurationClient) GetContentResponder(resp *http.Response) (r
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of configurations.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
func (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result DscConfigurationListResultPage, err error) {
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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{
|
||||
{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())
|
||||
}
|
||||
|
||||
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 {
|
||||
err = autorest.NewErrorWithError(err, "automation.DscConfigurationClient", "ListByAutomationAccount", nil, "Failure preparing request")
|
||||
return
|
||||
@ -380,7 +399,7 @@ func (client DscConfigurationClient) ListByAutomationAccount(ctx context.Context
|
||||
}
|
||||
|
||||
// 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{}{
|
||||
"automationAccountName": autorest.Encode("path", automationAccountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
@ -391,6 +410,18 @@ func (client DscConfigurationClient) ListByAutomationAccountPreparer(ctx context
|
||||
queryParameters := map[string]interface{}{
|
||||
"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(
|
||||
autorest.AsGet(),
|
||||
@ -442,20 +473,23 @@ func (client DscConfigurationClient) listByAutomationAccountNextResults(lastResu
|
||||
}
|
||||
|
||||
// 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) {
|
||||
result.page, err = client.ListByAutomationAccount(ctx, resourceGroupName, automationAccountName)
|
||||
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, filter, skip, top, inlinecount)
|
||||
return
|
||||
}
|
||||
|
||||
// Update create the configuration identified by configuration name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// configurationName is the create or update parameters for configuration. parameters is the create or update
|
||||
// parameters for configuration.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,13 +41,16 @@ func NewDscNodeClientWithBaseURI(baseURI string, subscriptionID string) DscNodeC
|
||||
}
|
||||
|
||||
// Delete delete the dsc node identified by node id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is automation account name. nodeID is the
|
||||
// node id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -115,13 +118,16 @@ func (client DscNodeClient) DeleteResponder(resp *http.Response) (result DscNode
|
||||
}
|
||||
|
||||
// Get retrieve the dsc node identified by node id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is
|
||||
// the node id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -189,13 +195,16 @@ func (client DscNodeClient) GetResponder(resp *http.Response) (result DscNode, e
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of dsc nodes.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is
|
||||
// the filter to apply on the operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -293,13 +302,17 @@ func (client DscNodeClient) ListByAutomationAccountComplete(ctx context.Context,
|
||||
}
|
||||
|
||||
// Update update the dsc node.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is
|
||||
// parameters supplied to the update dsc node. parameters is parameters supplied to the update dsc node.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,14 +41,17 @@ func NewDscNodeConfigurationClientWithBaseURI(baseURI string, subscriptionID str
|
||||
}
|
||||
|
||||
// CreateOrUpdate create the node configuration identified by node configuration name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// nodeConfigurationName is the create or update parameters for configuration. parameters is the create or update
|
||||
// parameters for configuration.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.Source", Name: validation.Null, Rule: true,
|
||||
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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// nodeConfigurationName is the Dsc node configuration name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -200,13 +206,16 @@ func (client DscNodeConfigurationClient) DeleteResponder(resp *http.Response) (r
|
||||
}
|
||||
|
||||
// Get retrieve the Dsc node configurations by node configuration.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// nodeConfigurationName is the Dsc node configuration name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -274,13 +283,16 @@ func (client DscNodeConfigurationClient) GetResponder(resp *http.Response) (resu
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of dsc node configurations.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is
|
||||
// the filter to apply on the operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
||||
// is the name of module. typeName is the name of type.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,13 +41,16 @@ func NewHybridRunbookWorkerGroupClientWithBaseURI(baseURI string, subscriptionID
|
||||
}
|
||||
|
||||
// Delete delete a hybrid runbook worker group.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is automation account name.
|
||||
// hybridRunbookWorkerGroupName is the hybrid runbook worker group name
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -114,13 +117,16 @@ func (client HybridRunbookWorkerGroupClient) DeleteResponder(resp *http.Response
|
||||
}
|
||||
|
||||
// Get retrieve a hybrid runbook worker group.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// hybridRunbookWorkerGroupName is the hybrid runbook worker group name
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -188,17 +194,21 @@ func (client HybridRunbookWorkerGroupClient) GetResponder(resp *http.Response) (
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of hybrid runbook worker groups.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
func (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result HybridRunbookWorkerGroupsListResultPage, err error) {
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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{
|
||||
{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())
|
||||
}
|
||||
|
||||
result.fn = client.listByAutomationAccountNextResults
|
||||
req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName)
|
||||
req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName, filter)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "automation.HybridRunbookWorkerGroupClient", "ListByAutomationAccount", nil, "Failure preparing request")
|
||||
return
|
||||
@ -220,7 +230,7 @@ func (client HybridRunbookWorkerGroupClient) ListByAutomationAccount(ctx context
|
||||
}
|
||||
|
||||
// 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{}{
|
||||
"automationAccountName": autorest.Encode("path", automationAccountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
@ -231,6 +241,9 @@ func (client HybridRunbookWorkerGroupClient) ListByAutomationAccountPreparer(ctx
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
if len(filter) > 0 {
|
||||
queryParameters["$filter"] = autorest.Encode("query", filter)
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
@ -282,20 +295,23 @@ func (client HybridRunbookWorkerGroupClient) listByAutomationAccountNextResults(
|
||||
}
|
||||
|
||||
// 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) {
|
||||
result.page, err = client.ListByAutomationAccount(ctx, resourceGroupName, automationAccountName)
|
||||
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, filter)
|
||||
return
|
||||
}
|
||||
|
||||
// Update update a hybrid runbook worker group.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// hybridRunbookWorkerGroupName is the hybrid runbook worker group name parameters is the hybrid runbook worker
|
||||
// group
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -42,13 +42,17 @@ func NewJobClientWithBaseURI(baseURI string, subscriptionID string) JobClient {
|
||||
}
|
||||
|
||||
// Create create a job of the runbook.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id. parameters is the parameters supplied to the create job operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
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 {
|
||||
@ -121,13 +125,16 @@ func (client JobClient) CreateResponder(resp *http.Response) (result Job, err er
|
||||
}
|
||||
|
||||
// Get retrieve the job identified by job id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -195,13 +202,16 @@ func (client JobClient) GetResponder(resp *http.Response) (result Job, err error
|
||||
}
|
||||
|
||||
// GetOutput retrieve the job output identified by job id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -341,13 +354,16 @@ func (client JobClient) GetRunbookContentResponder(resp *http.Response) (result
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of jobs.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is
|
||||
// the filter to apply on the operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -445,13 +461,16 @@ func (client JobClient) ListByAutomationAccountComplete(ctx context.Context, res
|
||||
}
|
||||
|
||||
// Resume resume the job identified by jobId.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -518,13 +537,16 @@ func (client JobClient) ResumeResponder(resp *http.Response) (result autorest.Re
|
||||
}
|
||||
|
||||
// Stop stop the job identified by jobId.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -591,13 +613,16 @@ func (client JobClient) StopResponder(resp *http.Response) (result autorest.Resp
|
||||
}
|
||||
|
||||
// Suspend suspend the job identified by jobId.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -43,14 +43,17 @@ func NewJobScheduleClientWithBaseURI(baseURI string, subscriptionID string) JobS
|
||||
}
|
||||
|
||||
// Create create a job schedule.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// jobScheduleID is the job schedule name. parameters is the parameters supplied to the create job schedule
|
||||
// operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
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},
|
||||
@ -125,13 +128,16 @@ func (client JobScheduleClient) CreateResponder(resp *http.Response) (result Job
|
||||
}
|
||||
|
||||
// Delete delete the job schedule identified by job schedule name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// jobScheduleID is the job schedule name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -198,13 +204,16 @@ func (client JobScheduleClient) DeleteResponder(resp *http.Response) (result aut
|
||||
}
|
||||
|
||||
// Get retrieve the job schedule identified by job schedule name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// jobScheduleID is the job schedule name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -272,17 +281,21 @@ func (client JobScheduleClient) GetResponder(resp *http.Response) (result JobSch
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of job schedules.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
func (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, resourceGroupName string, automationAccountName string) (result JobScheduleListResultPage, err error) {
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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{
|
||||
{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())
|
||||
}
|
||||
|
||||
result.fn = client.listByAutomationAccountNextResults
|
||||
req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName)
|
||||
req, err := client.ListByAutomationAccountPreparer(ctx, resourceGroupName, automationAccountName, filter)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "automation.JobScheduleClient", "ListByAutomationAccount", nil, "Failure preparing request")
|
||||
return
|
||||
@ -304,7 +317,7 @@ func (client JobScheduleClient) ListByAutomationAccount(ctx context.Context, res
|
||||
}
|
||||
|
||||
// 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{}{
|
||||
"automationAccountName": autorest.Encode("path", automationAccountName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
@ -315,6 +328,9 @@ func (client JobScheduleClient) ListByAutomationAccountPreparer(ctx context.Cont
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
if len(filter) > 0 {
|
||||
queryParameters["$filter"] = autorest.Encode("query", filter)
|
||||
}
|
||||
|
||||
preparer := autorest.CreatePreparer(
|
||||
autorest.AsGet(),
|
||||
@ -366,7 +382,7 @@ func (client JobScheduleClient) listByAutomationAccountNextResults(lastResults J
|
||||
}
|
||||
|
||||
// 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) {
|
||||
result.page, err = client.ListByAutomationAccount(ctx, resourceGroupName, automationAccountName)
|
||||
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, filter)
|
||||
return
|
||||
}
|
||||
|
@ -41,13 +41,17 @@ func NewJobStreamClientWithBaseURI(baseURI string, subscriptionID string) JobStr
|
||||
}
|
||||
|
||||
// Get retrieve the job stream identified by job stream id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job id. jobStreamID is the job stream id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -116,13 +120,17 @@ func (client JobStreamClient) GetResponder(resp *http.Response) (result JobStrea
|
||||
}
|
||||
|
||||
// ListByJob retrieve a list of jobs streams identified by job id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the
|
||||
// job Id. filter is the filter to apply on the operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,12 +41,15 @@ func NewKeysClientWithBaseURI(baseURI string, subscriptionID string) KeysClient
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve the automation keys for an account.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,12 +41,15 @@ func NewLinkedWorkspaceClientWithBaseURI(baseURI string, subscriptionID string)
|
||||
}
|
||||
|
||||
// Get retrieve the linked workspace for the account id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -41,13 +41,17 @@ func NewModuleClientWithBaseURI(baseURI string, subscriptionID string) ModuleCli
|
||||
}
|
||||
|
||||
// CreateOrUpdate create or Update the module identified by module name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
||||
// is the name of module. parameters is the create or update parameters for module.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.ModuleCreateOrUpdateProperties", 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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
||||
// is the module name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -199,13 +206,16 @@ func (client ModuleClient) DeleteResponder(resp *http.Response) (result autorest
|
||||
}
|
||||
|
||||
// Get retrieve the module identified by module name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
||||
// is the module name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -273,12 +283,15 @@ func (client ModuleClient) GetResponder(resp *http.Response) (result Module, err
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of modules.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -373,13 +386,17 @@ func (client ModuleClient) ListByAutomationAccountComplete(ctx context.Context,
|
||||
}
|
||||
|
||||
// Update update the module identified by module name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
||||
// is the name of module. parameters is the update parameters for module.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,13 +41,17 @@ func NewNodeReportsClientWithBaseURI(baseURI string, subscriptionID string) Node
|
||||
}
|
||||
|
||||
// Get retrieve the Dsc node report data by node id and report id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is
|
||||
// the Dsc node id. reportID is the report id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is
|
||||
// the Dsc node id. reportID is the report id.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -191,13 +199,17 @@ func (client NodeReportsClient) GetContentResponder(resp *http.Response) (result
|
||||
}
|
||||
|
||||
// ListByNode retrieve the Dsc node report list by node id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is
|
||||
// the parameters supplied to the list operation. filter is the filter to apply on the operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,13 +41,17 @@ func NewObjectDataTypesClientWithBaseURI(baseURI string, subscriptionID string)
|
||||
}
|
||||
|
||||
// ListFieldsByModuleAndType retrieve a list of fields of a given type identified by module name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName
|
||||
// is the name of module. typeName is the name of type.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -116,13 +120,16 @@ func (client ObjectDataTypesClient) ListFieldsByModuleAndTypeResponder(resp *htt
|
||||
}
|
||||
|
||||
// ListFieldsByType retrieve a list of fields of a given type across all accessible modules.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. typeName is
|
||||
// the name of type.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,14 +41,18 @@ func NewRunbookClientWithBaseURI(baseURI string, subscriptionID string) RunbookC
|
||||
}
|
||||
|
||||
// CreateOrUpdate create the runbook identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the runbook name. parameters is the create or update parameters for runbook. Provide either content link for
|
||||
// a published runbook or draft, not both.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// automationAccountName - the name of the automation account.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.RunbookCreateOrUpdateProperties", Name: validation.Null, Rule: true,
|
||||
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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the runbook name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -208,13 +215,16 @@ func (client RunbookClient) DeleteResponder(resp *http.Response) (result autores
|
||||
}
|
||||
|
||||
// Get retrieve the runbook identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the runbook name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -282,13 +292,16 @@ func (client RunbookClient) GetResponder(resp *http.Response) (result Runbook, e
|
||||
}
|
||||
|
||||
// GetContent retrieve the content of runbook identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the runbook name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -356,12 +369,15 @@ func (client RunbookClient) GetContentResponder(resp *http.Response) (result Str
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of runbooks.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -456,13 +472,17 @@ func (client RunbookClient) ListByAutomationAccountComplete(ctx context.Context,
|
||||
}
|
||||
|
||||
// Update update the runbook identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the runbook name. parameters is the update parameters for runbook.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,13 +41,16 @@ func NewRunbookDraftClientWithBaseURI(baseURI string, subscriptionID string) Run
|
||||
}
|
||||
|
||||
// Get retrieve the runbook draft identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the runbook name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -115,13 +118,16 @@ func (client RunbookDraftClient) GetResponder(resp *http.Response) (result Runbo
|
||||
}
|
||||
|
||||
// GetContent retrieve the content of runbook draft identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the runbook name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -189,13 +195,16 @@ func (client RunbookDraftClient) GetContentResponder(resp *http.Response) (resul
|
||||
}
|
||||
|
||||
// Publish publish runbook draft.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the parameters supplied to the publish runbook operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -239,39 +248,44 @@ func (client RunbookDraftClient) PublishPreparer(ctx context.Context, resourceGr
|
||||
// PublishSender sends the Publish request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client RunbookDraftClient) PublishSender(req *http.Request) (future RunbookDraftPublishFuture, err error) {
|
||||
sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client))
|
||||
future.Future = azure.NewFuture(req)
|
||||
future.req = req
|
||||
_, err = future.Done(sender)
|
||||
var resp *http.Response
|
||||
resp, err = autorest.SendWithSender(client, req,
|
||||
azure.DoRetryWithRegistration(client.Client))
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = autorest.Respond(future.Response(),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted))
|
||||
err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted))
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
future.Future, err = azure.NewFutureFromResponse(resp)
|
||||
return
|
||||
}
|
||||
|
||||
// PublishResponder handles the response to the Publish request. The method always
|
||||
// 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(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted),
|
||||
autorest.ByUnmarshallingJSON(&result),
|
||||
autorest.ByClosing())
|
||||
result.Response = autorest.Response{Response: resp}
|
||||
result.Response = resp
|
||||
return
|
||||
}
|
||||
|
||||
// ReplaceContent replaces the runbook draft content.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the runbook name. runbookContent is the runbook draft content.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -317,15 +331,17 @@ func (client RunbookDraftClient) ReplaceContentPreparer(ctx context.Context, res
|
||||
// ReplaceContentSender sends the ReplaceContent request. The method will close the
|
||||
// http.Response Body if it receives an error.
|
||||
func (client RunbookDraftClient) ReplaceContentSender(req *http.Request) (future RunbookDraftReplaceContentFuture, err error) {
|
||||
sender := autorest.DecorateSender(client, azure.DoRetryWithRegistration(client.Client))
|
||||
future.Future = azure.NewFuture(req)
|
||||
future.req = req
|
||||
_, err = future.Done(sender)
|
||||
var resp *http.Response
|
||||
resp, err = autorest.SendWithSender(client, req,
|
||||
azure.DoRetryWithRegistration(client.Client))
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = autorest.Respond(future.Response(),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted))
|
||||
err = autorest.Respond(resp, azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted))
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
future.Future, err = azure.NewFutureFromResponse(resp)
|
||||
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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName
|
||||
// is the runbook name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,13 +41,17 @@ func NewScheduleClientWithBaseURI(baseURI string, subscriptionID string) Schedul
|
||||
}
|
||||
|
||||
// CreateOrUpdate create a schedule.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. scheduleName
|
||||
// is the schedule name. parameters is the parameters supplied to the create or update schedule operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true, Chain: nil},
|
||||
{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.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. scheduleName
|
||||
// is the schedule name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -187,20 +194,23 @@ func (client ScheduleClient) DeleteResponder(resp *http.Response) (result autore
|
||||
err = autorest.Respond(
|
||||
resp,
|
||||
client.ByInspecting(),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNotFound),
|
||||
azure.WithErrorUnlessStatusCode(http.StatusOK),
|
||||
autorest.ByClosing())
|
||||
result.Response = resp
|
||||
return
|
||||
}
|
||||
|
||||
// Get retrieve the schedule identified by schedule name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. scheduleName
|
||||
// is the schedule name.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -268,12 +278,15 @@ func (client ScheduleClient) GetResponder(resp *http.Response) (result Schedule,
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve a list of schedules.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
// Parameters:
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
@ -368,13 +381,17 @@ func (client ScheduleClient) ListByAutomationAccountComplete(ctx context.Context
|
||||
}
|
||||
|
||||
// Update update the schedule identified by schedule name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. scheduleName
|
||||
// is the schedule name. parameters is the parameters supplied to the update schedule operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
@ -41,13 +41,16 @@ func NewStatisticsClientWithBaseURI(baseURI string, subscriptionID string) Stati
|
||||
}
|
||||
|
||||
// ListByAutomationAccount retrieve the statistics for the account.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is
|
||||
// the filter to apply on the operation.
|
||||
// Parameters:
|
||||
// resourceGroupName - name of an Azure Resource group.
|
||||
// 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) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{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())
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user